-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unused_deps failing with bzlmod #1315
Comments
fzakaria
added a commit
to fzakaria/buildtools
that referenced
this issue
Dec 10, 2024
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
With Bazel 8 and Bzlmod, |
@fmeum is that another issue? |
It's another issue and it does require version detection. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm failing to run unused_deps on our repository which is migrated to bzlmod.
slack thread
culprit
buildtools/unused_deps/unused_deps.go
Line 383 in 8bd806d
This is surprising why it's failing but if I read the documentation for
--override_repository
on Bazel it says ref:fix
I applied the following patch and it worked
The text was updated successfully, but these errors were encountered: