-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel at HEAD breaks skylib: no matching toolchains found #8227
Comments
May be fixed by cc943c5 (verifying) |
/cc @laszlocsomor |
Looks like cc943c5 did not actually fix this :( |
*** Reason for rollback *** Needed to rollback larger charge which breaks bazel-skylib (See #8227 for breakage details) *** Original change description *** Check if a toolchain was loaded from a bzl file in the MAIN workspace then put it in the map under "@" as opposed to the main repo's name. RELNOTES: None PiperOrigin-RevId: 246528284
*** Reason for rollback *** Breaks bazel-skylib See #8227 for details. *** Original change description *** Make target pattern parsing repository-renaming aware. Platform and toolchain resolution rely on the target pattern parsing code to turn target pattern strings into Labels. Since most of the target pattern parsing codepaths turn target patterns that originated from the command line, they don't need to pass along the repository renaming map. But instances that affect platform and toolchain target patterns, we need to pass the map. This allows us to turn on the --incompatible_remap_main_repo flag on by default in Bazel. Closes #7902. Fixes #7755, #7773, #7654. RELNOTES: None PiperOrigin-RevId: 246546091
Confirmed the rollbacks have fixed bazel-skylib. |
For those running into this issue today, If the issue is easily reproducible, the most likely explanation is that you've forgotten to follow the instructions at https://github.com/bazelbuild/bazel-skylib#workspace-file (specifically, adding that full stanza to your I'm not actively looking into this anymore, and I haven't gotten additional reports that this is happening flakily. I'm going to close this, but feel free to reopen if it arises again. |
*** Reason for rollback *** Needed to rollback larger charge which breaks bazel-skylib (See bazelbuild/bazel#8227 for breakage details) *** Original change description *** Check if a toolchain was loaded from a bzl file in the MAIN workspace then put it in the map under "@" as opposed to the main repo's name. RELNOTES: None PiperOrigin-RevId: 246528284
It looks like 771cb7a introduces a breakage of bazel-skylib (example) that is quite hard to reproduce. The error itself is:
However, it seems that one can only see this error in a roundabout fashion (which so happens is the manner in which bazel-skylib is rerun). The incantation (from the bazel-skylib root):
(fetches occur and everything passes)
(build fails, as one would expect, because bazel-skylib requires the
--incompatible_remap_main_repo
flag to build.Everything fails, with the above error.
Then subsequent invocations of
also result in the given error.
The text was updated successfully, but these errors were encountered: