Git dependencies cannot compare local dependency versions

Description

If I have 2 dependencies on the same git repository, but for different `:deps/root` which share a `:local/root` dependency, there is currently no way to compare them.

The tree would look like so:

While I understand why this behavior is this way, my expectation was that the comparison would be done based on the git scope/ancestry.

This is a very useful case for git dependencies in monorepos, as the reason they're in the same repo is to allow code sharing. In particular, this would allow for Edge to be used both with & without cloning the repository.

Environment

None

Activity

Show:
Alex Miller
March 16, 2019, 5:28 PM

This is beyond what local deps were designed to support for on-disk local dependencies (independent of git), so I'm going to call this out of scope.

That said, I think this use case of a monorepo, with internal relative dependencies that can be supported in a git dep is obviously a thing people are doing and it would make sense to consider how to best support this use case, possibly a new type of dep that retained the awareness of "relative but still in the scope of a git dep". I also think it would be worth considering this in tandem with better support for a dependency management type feature. (I don't think that will look like dependency management in maven/lein, but similar use case.)

Assignee

Alex Miller

Reporter

Dominic Monroe

Labels

None

Approval

None

Patch

None

Priority

Major
Configure