tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
timo 2020-09-21T14:43:44.026600Z

What is the command to only resolve dependencies with tools-deps and not start a repl? I need it for CI.

alexmiller 2020-09-21T14:44:46.027400Z

clj -e nil is sufficient. current prereleases have a new -P (prepare) switch for this purpose.

timo 2020-09-21T14:46:47.027500Z

thanks!

ghadi 2020-09-21T14:47:35.028200Z

@timok you'll want clojure -e nil instead of clj if you don't have an interactive terminal

ghadi 2020-09-21T14:47:42.028400Z

in CI

timo 2020-09-21T14:47:55.028600Z

ok, cool

timo 2020-09-21T14:48:09.028900Z

I never understood the differences though

dominicm 2020-09-21T14:48:43.029500Z

Clj calls rlwrap. So adds things like up/down.

alexmiller 2020-09-21T14:49:48.029700Z

right, sorry

timo 2020-09-21T14:50:11.030Z

awesome, thanks for the answers :thumbsup:

2020-09-21T15:03:52.030100Z

For better logging in multi-step builds, I sometimes do clojure -Srepro -e '(println "Dependencies downloaded")' .