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] Build fails with "no such target '@@rules_java//toolchains:bootstrap_runtime_toolchain_type' in rules_java" #1307

Open
sgowroji opened this issue Sep 16, 2024 · 0 comments

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4128#0191f902-7309-46ac-b90b-cdf9351eb199

Platform: Ubuntu

Logs:

ERROR: �[0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/361c28ee73570ea54c6890228c2c1f11/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/361c28ee73570ea54c6890228c2c1f11/external/rules_java/toolchains/BUILD
ERROR: �[0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/361c28ee73570ea54c6890228c2c1f11/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/361c28ee73570ea54c6890228c2c1f11/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/361c28ee73570ea54c6890228c2c1f11/external/io_bazel_stardoc/src/main/java/com/google/devtools/build/skydoc/renderer/BUILD:17:12: Analysis failed
ERROR: �[0mAnalysis of target '//doc:test_api' failed; build aborted: Analysis failed
ERROR: �[0mBuild did NOT complete successfully
FAILED:�[0m 
FAILED:�[0m 
ERROR: �[0mNo test targets were found, yet testing was requested
FAILED:�[0m 
Error: The command exited with status 1�[0m
error: The plugin docker command hook exited with status 1

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_swift
git reset 86dc0f046269b3001f6f20cec38342c03120a209  --hard
export USE_BAZEL_VERSION=7b8d07253adf84d5e3d46ac915a1440e518fab3c
bazel test  doc/... 

CC Greenteam @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