Skip to content

Support bzlmod repositories#1316

Merged
vladmos merged 3 commits intobazelbuild:mainfrom
fzakaria:issue-1315
Jan 14, 2025
Merged

Support bzlmod repositories#1316
vladmos merged 3 commits intobazelbuild:mainfrom
fzakaria:issue-1315

Conversation

@fzakaria
Copy link
Contributor

unused_deps seems to be broken for repositories that have migrated over to bzlmod.

Specifically, the reference to the aspect must be done via the canonical name for the workspace now.
(This probably even needs to change once WORKSPACE is defunct in Bazel 9)

This will break users of unused_deps if they are not on bzlmod but given the latest release of Bazel 8 this is the direction we are headed. Existing WORKSPACE users can pin to a previous version. (Alternatively we could maybe support a flag)

fixes #1315

unused_deps seems to be broken for repositories that have migrated over
to bzlmod.

Specifically, the reference to the aspect must be done via the canonical
name for the workspace now.
(This probably even needs to change once WORKSPACE is defunct in Bazel 9)

This will break users of unused_deps if they are not on bzlmod but given
the latest release of Bazel 8 this is the direction we are headed.
Existing WORKSPACE users can pin to a previous version.
(Alternatively we could maybe support a flag)

fixes bazelbuild#1315
@vladmos
Copy link
Member

vladmos commented Dec 12, 2024

Please sync to head, that should fix the failing tests.

@fzakaria fzakaria requested a review from vladmos December 17, 2024 19:36
@fzakaria
Copy link
Contributor Author

@vladmos clicked the sync button in the UI ... let's see how that goes :)

@vladmos vladmos merged commit cf7952d into bazelbuild:main Jan 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unused_deps failing with bzlmod

2 participants