tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
alexmiller 2020-07-08T00:07:53.290600Z

the first

👍 1
alexmiller 2020-07-08T00:30:27.290700Z

the Clojure edn reader does read namespace maps but hiredman is correct that this is not currently part of the spec

👍 1
Jakub Holý 2020-07-08T09:07:30.292100Z

Hello! How do I run clj to only download dependencies for a profile and exit at once? Like this: clojure -R:nrepl -e "(println :DOWNLOADED)" ? Thanks!

dominicm 2020-07-08T09:39:20.292200Z

@holyjak clojure -R:nrepl -Spath should do it :)

👍 1
practicalli-john 2020-07-08T10:51:17.294900Z

Using -Spath also gives you more data should you need to debug anything (a Sean Corfield tip). I am using this form of command in my continuous integration yml configuration (in the step where I would have use lein deps with Leingingen projects)

- run: clojure -R:test:runner -Spath
http://practicalli.github.io/clojure/testing/integration-testing/circle-ci/random-clojure-function.html

Jakub Holý 2020-07-08T11:00:23.295200Z

thanks!!!

fabrao 2020-07-08T19:22:16.296700Z

hello all, what is the magic about starting so fast in comparing with lein and boot ?

souenzzo 2020-07-08T19:25:28.296800Z

- less deps, clean design - do less things (lein/boot do A LOT more stuff) - cache classpath "in bash" ...

borkdude 2020-07-08T19:25:55.297Z

fire up only one java process (when classpath is cached)

souenzzo 2020-07-08T19:27:50.297200Z

design choise example: lein help will build a classpath, start a JVM, load all plugins, ask to every plugin if it implements "help" and eventually show the help message clj --help is handled without start any JVM

fabrao 2020-07-08T19:51:15.297400Z

this saved me time and memory, many thanks who made it