-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Bzlmod: Implement strict repo deps #13793
Copy link
Copy link
Closed
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: feature request
Metadata
Metadata
Assignees
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)team-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.External dependency handling, remote repositiories, WORKSPACE file.type: feature request
Main issue: #13316
The repository derived from a Bazel module should only be able to access other repositories generated from its direct dependencies.
Eg.
A/MODULE.bazel:
B/MODULE.bazel:
C/MODULE.bazel
Repository A won't be able to access any targets from C unless it also declares a direct dependency on C by adding
bazel_dep(name = "C", version = "1.1.0")in its MODULE.bazel file.