Fork me on GitHub
#tools-build
<
2022-08-25
>
zane19:08:02

The https://clojure.org/guides/tools_build#_compiled_uberjar_application_build recommends adding a dependency on tools.build to the :deps of an alias. My understanding is that -T ignores :extra-deps. If I want to be able to call my build functions from the Clojure REPL in development is the right thing to add an additional dependency on tools.build to the :extra-deps of a development alias?

Alex Miller (Clojure team)19:08:11

:deps and :extra-deps in an alias are synonyms

Alex Miller (Clojure team)19:08:58

you will likely also want to add :paths or :extra-paths (again, synonyms) of ["."]

Alex Miller (Clojure team)19:08:50

why two different named things that do the same thing? naming is hard, yo

zane19:08:52

Ah! I thought :deps overwrote.

Alex Miller (Clojure team)20:08:01

that's actually in reference to an entirely different -T that was added temporarily in a dev release then removed, that did something different than the current -T

Alex Miller (Clojure team)20:08:26

sorry, I may have actually completely confused things above - in aliases, :deps is a synonym for :replace-deps and :paths is a synonym for :replace-paths. And those are separate from :extra-deps and :extra-paths. But none of them are ignored.

zane21:08:16

Brilliant. Okay.