This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-28
Channels
- # aleph (3)
- # announcements (3)
- # babashka (8)
- # beginners (12)
- # biff (4)
- # calva (12)
- # clerk (29)
- # clj-kondo (1)
- # clojure (104)
- # clojure-art (1)
- # clojure-austin (5)
- # clojure-berlin (3)
- # clojure-brasil (34)
- # clojure-europe (11)
- # clojure-germany (16)
- # clojure-losangeles (9)
- # clojure-nl (30)
- # clojure-norway (58)
- # clojure-uk (1)
- # core-async (8)
- # cursive (4)
- # data-science (9)
- # datalevin (1)
- # datomic (40)
- # emacs (2)
- # events (3)
- # helix (1)
- # honeysql (3)
- # hugsql (1)
- # hyperfiddle (66)
- # jobs (4)
- # juxt (7)
- # kaocha (9)
- # lsp (5)
- # malli (10)
- # off-topic (4)
- # polylith (2)
- # reitit (5)
- # releases (1)
- # remote-jobs (5)
- # sci (46)
- # scittle (2)
- # shadow-cljs (9)
- # tools-deps (17)
- # xtdb (8)
Should the following work?
{:deps {my.monorepo/foo {:local/root "../monorepo" :deps/root "subprojects/foo"}}}
It doesn't look like it does but reading https://clojure.org/reference/deps_and_cli I'm not sure whether it should.And by work, I mean the deps.edn that my.monorepo/foo is going to point to will be at "../monorepo/subprojects/foo/deps.edn"
Does it work? What in the documentation makes you think it shouldn't work?
I've never used :deps/root
with :local/root
, only with git deps so those are honest questions.
It doesn't look like it does. I'm mucking about with a project referencing libs from a monorepo and temporarily changed the references in the project to a local copy of the monorepo and hoped it would work.
From the doc: Common coordinate attributes (all optional): ... :deps/root - relative directory path within a file based dep to search for the manifest file
And: Local project attributes: :local/root (required) - directory path (will auto detect whether a deps or pom project, also see :deps/manifest)
Reading the above, local/root can qualify as a file based dep, which to me implies that deps/root should work as it isn't stated otherwise
Thanks for the Qs, Sean, I was watching the conj as I wrote this yesterday and couldn't fully concentrate 😅
Ah, yes... now I think about this, I've run into the same thing when I've been working with Polylith locally, and my test runner. :local/root
is the full path to the folder containing deps.edn
and tools.deps
ignores :deps/root
in that case.
Might be worth posting something on Ask about it -- it would make life easier, switching between local and git deps when developing a library or tool.
Opened an ask at https://ask.clojure.org/index.php/12913/using-deps-root-with-local-root in case people want to check it out.
Opened an ask at https://ask.clojure.org/index.php/12913/using-deps-root-with-local-root in case people want to check it out.