This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-13
Channels
- # adventofcode (36)
- # aleph (1)
- # announcements (7)
- # aws (4)
- # babashka (14)
- # beginners (61)
- # calva (79)
- # cider (19)
- # clojure (48)
- # clojure-austin (1)
- # clojure-australia (2)
- # clojure-czech (2)
- # clojure-europe (46)
- # clojure-france (8)
- # clojure-nl (19)
- # clojure-uk (4)
- # clojuredesign-podcast (14)
- # core-logic (42)
- # data-science (3)
- # datalevin (8)
- # datomic (76)
- # events (1)
- # figwheel-main (9)
- # fulcro (6)
- # helix (1)
- # holy-lambda (1)
- # honeysql (2)
- # jobs (2)
- # jobs-discuss (20)
- # leiningen (5)
- # lsp (87)
- # minecraft (11)
- # nextjournal (4)
- # off-topic (17)
- # practicalli (1)
- # reagent (22)
- # reitit (8)
- # releases (3)
- # rum (2)
- # shadow-cljs (18)
- # sql (11)
- # tools-build (5)
- # tools-deps (9)
- # xtdb (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?
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
if you use -T, that will remove the :deps and :paths from the deps.edn in building the classpath
-Ttool runs with a classpath that is based on :paths ["."]
and :deps {<the-tool-as-dep>}
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?
it's not right now
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)
so, I believe this is what you want