bazel-remote icon indicating copy to clipboard operation
bazel-remote copied to clipboard

[Bazel CI] Unable to find package 'Local_config_platform'

Open sgowroji opened this issue 9 months ago • 3 comments

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4715#019733f8-e785-4455-b18d-97e76fe68676

Platform: MacOS

Logs:

ERROR: [0m/Users/buildkite/builds/bk-macos-intel-12va/bazel-org-repo-root/bazel-remote/BUILD.bazel:38:10: While resolving toolchains for target //:bazel-remote (9ff9666): invalid registered toolchain '@bsd_tar_toolchains//:all': while parsing '@bsd_tar_toolchains//:all': error loading package '@@aspect_bazel_lib++toolchains+bsd_tar_toolchains//': Unable to find package for @@[unknown repo 'local_config_platform' requested from @@aspect_bazel_lib++toolchains+bsd_tar_toolchains]//:constraints.bzl: The repository '@@[unknown repo 'local_config_platform' requested from @@aspect_bazel_lib++toolchains+bsd_tar_toolchains]' could not be resolved: No repository visible as '@local_config_platform' from repository '@@aspect_bazel_lib++toolchains+bsd_tar_toolchains'.
ERROR: [0mAnalysis of target '//:bazel-remote' failed; build aborted
ERROR: [0mBuild did NOT complete successfully
FAILED:[0m 
FAILED:[0m 
Error: The command exited with status 1[0m
error: exit status 1

Culprit: https://github.com/bazelbuild/bazel/commit/83e284062bccdf50f387591836ceaddc82002b99

please also check bazelbuild/bazel#22080 for migration guide, it should be simple

CC Greenteam @meteorcloudy

sgowroji avatar Jun 03 '25 14:06 sgowroji

@alexeagle: I think this build failure with bazel from the tip of HEAD comes from rules_oci's dependency on aspect_bazel_lib - is this on your radar?

mostynb avatar Jun 07 '25 14:06 mostynb

Team, Given that the current bug has caused our Downstream CI pipeline to fail for over two months, we're temporarily moving it to a disabled pipeline. It will be reinstated in the Downstream CI once it successfully passes its tests in the disabled pipeline.

satyanandak avatar Sep 17 '25 13:09 satyanandak

Here's a rules_oci PR which tries to upgrade the version of aspect_bazel_lib which no longer uses local_config_platform: https://github.com/bazel-contrib/rules_oci/pull/842

mostynb avatar Sep 17 '25 20:09 mostynb