This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-17
Channels
- # ai (1)
- # announcements (1)
- # aws (38)
- # babashka (25)
- # beginners (84)
- # biff (11)
- # calva (58)
- # clerk (14)
- # clj-kondo (14)
- # cljdoc (9)
- # cljs-dev (2)
- # clojars (2)
- # clojure (93)
- # clojure-czech (2)
- # clojure-dev (13)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-spec (13)
- # clojure-uk (2)
- # clojurescript (6)
- # conjure (1)
- # core-async (9)
- # cursive (12)
- # data-science (7)
- # datahike (47)
- # datalevin (10)
- # datalog (3)
- # datomic (35)
- # emacs (3)
- # events (4)
- # fulcro (49)
- # gratitude (7)
- # humbleui (1)
- # hyperfiddle (42)
- # jobs-discuss (19)
- # kaocha (5)
- # lsp (20)
- # malli (3)
- # meander (2)
- # membrane (2)
- # off-topic (22)
- # pathom (2)
- # polylith (14)
- # practicalli (1)
- # rdf (3)
- # reitit (2)
- # shadow-cljs (11)
- # squint (3)
- # tools-deps (32)
- # vim (9)
- # xtdb (16)
I'd appreciate a few upvotes on https://ask.clojure.org/index.php/12913/using-deps-root-with-local-root This should make it easier to work with libraries being referenced from monorepos like a poly workspace
I +1'd it as soon as you wrote it 🙂
I am hoping that adopting this style within monorepos would also help with the dep comparison problem
I've upvoted because it sounds like a good idea but I also feel there's some context here that I'm missing 🙂 > As tools.deps currently appears to ignore :deps/root for :local/root dependencies, developers currently have to combine the two into :local/root Why is this a bad thing? It doesn't seem very inconvenient since you're going to write the local/root path anyway, adding a couple of directory levels doesn't seem too bad It does kinda mix up semantics: local/root should be pointing to the "repo" and deps/root should point to a relative path into a repo.
> Why is this a bad thing? I've 2 reasons: 1. when switching back and forth between git and local dep, you need to do extra work, cannot just "replace all git urls pointing to this repo with this local root value" 2. it might be contributing to https://clojure.atlassian.net/browse/TDEPS-132 2 is in relation to what you're pointing out: local/root identifies a "repo" and if monorepo-internal references use different local/roots, they are pointing to "different repos" between which comparisons might be meaningless. On the other hand if all of those just referenced their common root plus a deps/root (which in my reading identifies the location of the root deps.edn of the lib being referenced) then tools.deps could correctly identify those as being "the same repo"
I've tripped over #1 repeatedly while debugging Polylith stuff and my own test runner, and switching back and forth between git deps and local deps has a friction because of this.
I see, thanks for explaining! 🙂
The upvotes need to be over on Ask, not here 🙂
(just in case there's any confusion)