On Fri, Oct 9, 2020 at 3:15 PM alpeware llc <alpew...@gmail.com> wrote:

> You should be able to specify the deps.edn file using a env variable -
>
> The Clojure tools will use the following deps.edn map sources, in this
> order:
>
>    -
>
>    Root - found in the installation of clj (or as a resource in
>    tools.deps)
>    -
>
>    User - cross-project configuration (typically tools)
>    -
>
>       Locations used in this order:
>       -
>
>          If $CLJ_CONFIG is set, then use $CLJ_CONFIG (explicit override)
>          -
>
>          If $XDG_CONFIG_HOME is set, then use $XDG_CONFIG_HOME/clojure 
> (Freedesktop
>          conventions)
>          -
>
>          Else use $HOME/.clojure (most common)
>          -
>
>    Project - the deps.edn in the current directory
>    -
>
>    Config data - a deps.edn map passed on the command line
>
> https://clojure.org/reference/deps_and_cli#_deps_edn_sources
>
> Here's an example passing in a map -
>
> clojure -Sdeps '{:deps {myname/mytemplate {:local/root "mytemplate"}}}'
>
>
> Hope this helps.
>

Thanks. I see what the problem is.  Memo to documentation authors: please
use unambiguous terminology, consistently.  E.g. do not use 'deps.edn'
sometimes as a file name and sometimes as a type name. In fact I advise
against ever using it as anything but a file name.  The last line of the
doc should read something like:

Config data - a configuration map passed on the command line using
'-SDeps'.  As opposed to "name of a file ('deps.edn') containing a config
map, passed on the command line", which seems like the most natural way to
read the current text.

Cheers,

Gregg

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CAO40MinQjzxJf2L3Muw5zo2yknOd8_WSzhSJ8SnBRKNMBbtFFg%40mail.gmail.com.

Reply via email to