Fork me on GitHub
#tools-deps
<
2021-12-13
>
vemv14:12:20

Hi, one thing that I "know"/assume is that clojure -Ttools execution is not affected by any deps.edn file present in the $PWD, is that correct? i.e. any dependency or other piece of data in $PWD/deps.edn should not affect the classpath that clojure -Ttools will use If so, can one count on that as contractual behavior?

vemv14:12:11

Context: I want to make -Ttools one of the very few recommended ways to run https://github.com/rm-hull/nvd-clojure which is very much classpath-sensitive

Alex Miller (Clojure team)14:12:59

if you use -T, that will remove the :deps and :paths from the deps.edn in building the classpath

Alex Miller (Clojure team)14:12:07

-Ttool runs with a classpath that is based on :paths ["."] and :deps {<the-tool-as-dep>}

vemv15:12:53

Yes it's in the right direction paths . might be not exactly ideal though, as it seems to augment the classpath. I just want a program that never has extra deps/paths, regardless of $PWD. i.e. its classpath should be always the same. Would it be possible to not set the :paths at all? With an option perhaps?

vemv15:12:11

Alright, in that case for the time being, -Ttools will be one of the recommended APIs for nvd-clojure but not the only one. Would gladly revisit the topic at a later point (and if you are so generous, would appreciate being pinged about it if there are any changes in this area)

Alex Miller (Clojure team)15:12:31

yeah, I'm not going to remember that sorry :)

🙃 1
Alex Miller (Clojure team)14:12:55

so, I believe this is what you want