-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Dependency cycle in @@local_config_platform
(somehow caused by publish_binary.bzl)
#440
Comments
Are you using bzlmod or WORKSPACE? |
I'm using WORKSPACE, and plan to migrate to bzlmod in Bazel v7.2 (which contains a fix for bazelbuild/bazel#17880) |
Ok, I dropped WORKSPACE support recently to lower the maintenance burden of the rules. I'm inclined to close the issue since you can use your patch as a workaround until you migrate to bzlmod, do you think this requires more investigation? |
That sounds reasonable. I'm fine with closing this issue if you think the problem is specific to WORKSPACE mode. |
I did not manage to replicate this when using bzlmod so I'll close this. Feel free to re-open if you still have this issue once you've migrated to bzlmod. |
I'm not sure exactly what's going on here, but something about the
load()
order inrules_dotnet
is causing Bazel to report a dependency cycle when I try to build even basic C# targets:After some trial and error, I found that any attempt to
load("@local_config_platform//:constraints.bzl", ...)
from within the root workspace will fail with the above error. The docs onlocal_config_platform
are not sufficient for me to determine whether this is a bug in Bazel.The exact path to get to that line is something like:
As a workaround, changing the files
dotnet.apphost_packs.bzl
,dotnet.targeting_packs.bzl
, anddotnet.runtime_packs.bzl
to load thenuget_repo
rule directly allows the build to succeed for me:Bazel version: v7.1.2
Platform: Linux amd64 (but I suspect this isn't relevant)
The text was updated successfully, but these errors were encountered: