Skip to content
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 CI] no such target '@@rules_java//toolchains:bootstrap_runtime_toolchain_type': target 'bootstrap_runtime_toolchain_type' not declared in package 'toolchains' #542

Open
sgowroji opened this issue Sep 24, 2024 · 1 comment

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4144#01922238-3fe7-497f-8ee6-8d496da0d30e

Platform: Ubuntu

Logs:

ERROR: �[0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b1ffd2b66b98619087cd28ced591e05/external/rules_java/toolchains/BUILD: no such target '@@rules_java//toolchains:bootstrap_runtime_toolchain_type': target 'bootstrap_runtime_toolchain_type' not declared in package 'toolchains' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b1ffd2b66b98619087cd28ced591e05/external/rules_java/toolchains/BUILD
ERROR: �[0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b1ffd2b66b98619087cd28ced591e05/external/remote_jdk8_linux_aarch64_toolchain_config_repo/BUILD.bazel:27:10: no such target '@@rules_java//toolchains:bootstrap_runtime_toolchain_type': target 'bootstrap_runtime_toolchain_type' not declared in package 'toolchains' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b1ffd2b66b98619087cd28ced591e05/external/rules_java/toolchains/BUILD and referenced by '@@remote_jdk8_linux_aarch64_toolchain_config_repo//:bootstrap_runtime_toolchain'
ERROR: �[0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/8b1ffd2b66b98619087cd28ced591e05/external/bazel_skylib_gazelle_plugin/bzl/BUILD:8:11: Analysis failed
ERROR: �[0mAnalysis of target '@@bazel_skylib_gazelle_plugin//bzl:bzl' 

Culprit:

Steps:

git clone https://github.com/bazelbuild/bazel-skylib
git reset e8e9d218ff563f93e3a7f7547ea532e66b210620  --hard
export USE_BAZEL_VERSION=f64cdea68bb08717ea83c61d6c1567edb21c132c
bazel build //... @external_directory_tests//... @bazel_skylib_gazelle_plugin//... -//distribution/... 

CC Greenteam @Wyverald

@sgowroji
Copy link
Member Author

sgowroji commented Nov 8, 2024

CC @tetromino @comius

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant