-
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
No matching toolchains with experimental_repository_resolved_file
#8523
Comments
Given to both configurability (because toolchains) and ExternalDeps. I am not sure where the boundary is. |
tl;dr: fixed upstream The longer story is the following. The repository resolved file was once faithfully representing the semantics of the of the |
Thank you! Is there a separate commit adding support for register_execution_platforms? |
Is that another feature added to |
Pending for review: https://bazel-review.googlesource.com/c/bazel/+/102230 |
The concept of execution platforms was introduced after the introduction of the workspace resolved file. However, when it was added, no addition was made to the resolved file to contain that information as well. Do so now, to ensure the resolved file still can be used as a full replacement for the workspace file. Fixes bazelbuild#8523 Change-Id: I3e31845084393d13bc917071bc458ea8a78a4336 PiperOrigin-RevId: 252016507
The concept of execution platforms was introduced after the introduction of the workspace resolved file. However, when it was added, no addition was made to the resolved file to contain that information as well. Do so now, to ensure the resolved file still can be used as a full replacement for the workspace file. Fixes bazelbuild#8523 Change-Id: I3e31845084393d13bc917071bc458ea8a78a4336 PiperOrigin-RevId: 252016507
Description of the problem / feature request:
When using the
experimental_repository_resolved_file
family of flags as recommended by this post, when using rules_go you end up with this error upon building:Note: this is an easy repro case with go, but I've also seen this with other toolchains:
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel sync --experimental_repository_resolved_file=resolved.bzl
bazel build --experimental_resolved_file_instead_of_workspace=resolved.bzl --experimental_repository_hash_file=resolved.bzl --experimental_verify_repository_rules=@bazel_tools//tools/build_defs/repo:git.bzl%git_repository --experimental_verify_repository_rules=@bazel_tools//tools/build_defs/repo:http.bzl%http_archive //...
(or add these flags to a
.bazelrc
)What operating system are you running Bazel on?
macOS
What's the output of
bazel info release
?release 0.26.0
Have you found anything relevant by searching the web?
No, I also can't really tell what the state of these flags is
The text was updated successfully, but these errors were encountered: