Unable to start deps.edn project in write protected directory
Description
Currently user cache is customizable via CLJ_CACHE or CLJ_CONFIG (and XDG_..) environment variables, but inside project dir the path is set by the following code in clojure tools bash script:
Which effectively makes impossible to run deps.edn project on write protected file system. Current override is possible via renaming deps.edn and loading it via e.g. "-Sdeps $(cat xdeps.edn)", with CLJ_CACHE env var, which in turn may create other chained problems, especially in quoting-sensitive environments like systemd.
Proposal: introduce optional environment variable for project cache destination like:
Environment
None
Activity
Alex Miller
December 4, 2023 at 6:13 PM
Released in 1.11.1.1420
Stanislav Yurin
February 26, 2019 at 8:33 AM
Sorry, can't find the repository source of that bash script anywhere, so not attaching a patch file.
Currently user cache is customizable via CLJ_CACHE or CLJ_CONFIG (and XDG_..) environment variables,
but inside project dir the path is set by the following code in clojure tools bash script:
Which effectively makes impossible to run deps.edn project on write protected file system.
Current override is possible via renaming deps.edn and loading it via e.g. "-Sdeps $(cat xdeps.edn)",
with CLJ_CACHE env var, which in turn may create other chained problems, especially in quoting-sensitive environments like systemd.
Proposal: introduce optional environment variable for project cache destination like: