tools-deps

Drew Verlee 2023-05-22T03:19:51.422579Z

Is there a way to avoid declaring the mvn/root in a project, if the local/root dependency that uses it already has declared the mvn/root? For example, the example project below depends on local project f, which uses something found in the blah repo.

{:deps {f/f {:local/root "../f"}}
But if i try to build this, it fails, because it can't find blah. But if I add the mvn repo where blah is found, it works (as expected)
... :mnv/repo {"blah" {:URL "blahs url}}
But mvn/repo is already declared in the f project, so it feels like i'm declaring it twice for no added benefit.

seancorfield 2023-05-22T03:24:46.148319Z

It's to avoid possible hijacking of dependencies by a transitive dep.

🙏 1
Alex Miller (Clojure team) 2023-05-22T03:26:22.304929Z

The added benefit is that you know you declared it

🙏 1
Drew Verlee 2023-05-22T03:27:32.982229Z

Gotcha. Thanks for the follow-up!