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] Bazel error when running cargo-bazel generate with exit code 101 #510

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

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4144#01922238-2bf1-4fb7-b539-a6c51eebef7b

Platform: Ubuntu

Logs:

ERROR: �[0m/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/external/rules_rust+/crate_universe/private/module_extensions/cargo_bazel_bootstrap.bzl:66:17: Traceback (most recent call last):
fail: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/modextwd/rules_rust++crate/cargo-bazel generate --cargo-lockfile /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/modextwd/rules_rust++crate/crates/splicing-output/Cargo.lock --config /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/modextwd/rules_rust++crate/crates/config.json --splicing-manifest /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/modextwd/rules_rust++crate/crates/splicing_manifest.json --repository-dir /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/modextwd/rules_rust++crate/crates --metadata /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/modextwd/rules_rust++crate/crates/splicing-output/metadata.json --repin --lockfile /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/modextwd/rules_rust++crate/crates/lockfile.json --cargo /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/external/rules_rust++rust_host_tools+rust_host_tools/bin/cargo --rustc /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d168dbd8a755d722a58ca9c3f6b335ea/external/rules_rust++rust_host_tools+rust_host_tools/bin/rustc returned with exit code 101:
ERROR: �[0mAnalysis of target '//tokio_oci:bin' failed; build aborted: error evaluating module extension crate in @@rules_rust+//crate_universe:extension.bzl
ERROR: �[0mBuild did NOT complete successfully
FAILED:�[0m 
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/examples
git reset 35eafcfcd74f001b401838350ef0d72a8519df6e  --hard
export USE_BAZEL_VERSION=f64cdea68bb08717ea83c61d6c1567edb21c132c
bazel build //... //tokio_oci:image 

CC Greenteam @Wyverald

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