tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2021-02-05T17:18:07.180Z

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)"

2021-02-05T17:18:15.180300Z

If I run clojure -P it appears to do nothing

alexmiller 2021-02-05T17:24:38.180800Z

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

alexmiller 2021-02-05T17:24:54.181300Z

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

2021-02-05T17:25:19.181800Z

ah ok

2021-02-05T17:29:27.183800Z

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)

seancorfield 2021-02-05T17:45:39.184500Z

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

2021-02-05T17:49:44.185400Z

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

seancorfield 2021-02-05T17:52:25.185600Z

Ah, OK.