rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

[Bazel CI ] No such package 'local_config_platform' with Bazel@HEAD

Open sgowroji opened this issue 7 months ago • 0 comments

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4715#019733f8-ff88-4965-93af-5c4522467312

Platform: Ubuntu

Logs:

ERROR: [0mno such package '@@[unknown repo 'local_config_platform' requested from @@+internal_dev_deps+buildkite_config]//': The repository '@@[unknown repo 'local_config_platform' requested from @@+internal_dev_deps+buildkite_config]' could not be resolved: No repository visible as '@local_config_platform' from repository '@@+internal_dev_deps+buildkite_config'
ERROR: [0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/930b84721fe1da7982a8de303acbb41f/external/+internal_dev_deps+buildkite_config/config/BUILD:36:9: no such package '@@[unknown repo 'local_config_platform' requested from @@+internal_dev_deps+buildkite_config]//': The repository '@@[unknown repo 'local_config_platform' requested from @@+internal_dev_deps+buildkite_config]' could not be resolved: No repository visible as '@local_config_platform' from repository '@@+internal_dev_deps+buildkite_config' and referenced by '@@+internal_dev_deps+buildkite_config//config:platform'
ERROR: [0mTarget @@+internal_dev_deps+buildkite_config//config:platform was referenced as a platform, but does not provide PlatformInfo

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

Steps:

git clone https://github.com/bazel-contrib/rules_python
git reset 948fcec44edbe12f4edf94db098c761570a72763  --hard
export USE_BAZEL_VERSION=0c5974298196863922508928c3af1ea6f2d53960 
bazel build  --extra_toolchains=@buildkite_config//config:cc-toolchain --keep_going --build_tag_filters=-integration-test ... @rules_python//examples/wheel/...

Please also check bazelbuild/bazel#22080 for migration guide

CC Greenteam @meteorcloudy

sgowroji avatar Jun 03 '25 14:06 sgowroji