Fork me on GitHub
#tools-deps
<
2019-01-09
>
gphilipp11:01:49

Let’s say I have a repo named foo with 3 logical modules in their own subdirectory: a, b and c. Each have their own deps.edn with their required dependencies. I can also have a root deps.edn which refers to these modules using 3 {:local/root ...} deps. Now, I fail to see how I can add a dependency using the git dep scheme on say, module foo-b from brand new project bar which lives in a separate repo. Has anyone done something similar before ?

gphilipp15:01:15

Well, @matthias.margush just mentioned to me that actually we can add a :deps/root value to a git coordinate to specify a subrepo to use a subdirectory. That’s the answer to my issue above, but alas it’s not (yet) documented in https://clojure.org/reference/deps_and_cli or https://clojure.org/guides/deps_and_cli.

Alex Miller (Clojure team)15:01:03

there’s an issue to doc it at https://github.com/clojure/clojure-site/issues/307, just haven’t gotten to it

👍 20