Fork me on GitHub
#tools-deps
<
2021-02-05
>
rickmoynihan17:02:07

Struggling to figure out how to use -P, my understanding was it would essentially merge all aliases and :deps :extra-deps and resolve them all, without having to do stuff like: clojure -R:all:the:aliases -e "(println :resolved)"

rickmoynihan17:02:15

If I run clojure -P it appears to do nothing

Alex Miller (Clojure team)17:02:38

-P will "prepare" by downloading all necessary deps and caching classpath etc, then not execute

Alex Miller (Clojure team)17:02:54

so it's intended to be used in combination with other exec options (-A / -M / -X)

rickmoynihan17:02:27

when I run clojure -P -A:all:my:aliases it doesn’t appear to resolve the deps (after previously having removed them from my .m2)

seancorfield17:02:39

@rickmoynihan What version of the CLI do you have? clojure -Sdescribe

rickmoynihan17:02:44

it’s ok it does seem to work — I made a mistake with the dep I chose to delete