bazelbuild / rules_rust

Rust rules for Bazel
https://bazelbuild.github.io/rules_rust/
Apache License 2.0
667 stars 431 forks source link

ERROR Failed to load Starlark extension '@@no_std_crate_index//:defs.bzl' in Downstream CI #2464

Open sgowroji opened 9 months ago

sgowroji commented 9 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3637#018d776d-4ed3-4d99-ba13-a0ef3e3a9f67 https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3639#018d7c2a-4a57-4b6d-a006-7a88840dced7

Platform: Ubuntu

Logs:

ERROR: Failed to load Starlark extension '@@no_std_crate_index//:defs.bzl'.
Cycle in the workspace file detected. This indicates that a repository is used prior to being defined.
The following chain of repository dependencies lead to the missing definition.
 - @@no_std_crate_index
This could either mean you have to add the '@@no_std_crate_index' repository with a statement like `http_archive` in your WORKSPACE file (note that transitive dependencies are not added automatically), or move an existing definition earlier in your WORKSPACE file.
(02:29:45) ERROR: Error computing the main repository mapping: cycles detected during computation of main repo mapping
(02:29:45) Computing main repo mapping:
bazel build failed with exit code 37
🚨 Error: The command exited with status 1

Culprit: bazelbuild/bazel@f13f3f4

Steps:

 git clone -v https://github.com/bazelbuild/rules_rust.git
git reset bbe2cf42b9788dcae8e9e02349436a0e2aa52571 --hard
export USE_BAZEL_VERSION=247e5e1ecd69afc908538c3354fa100872dfb381
cd  test/no_std
bazel build --@rules_rust//rust/toolchain/channel=nightly --@rules_rust//rust/settings:experimental_use_cc_common_link=True --@rules_rust//rust/settings:experimental_use_global_allocator=True --@rules_rust//:no_std=alloc //... 

CC Greenteam @SalmaSamy

sgowroji commented 9 months ago

CC @illicitonion @scentini  @UebelAndre @hlopko

meteorcloudy commented 7 months ago

According to https://buildkite.com/bazel/bazel-at-head-plus-disabled/builds/1993, this seems to be fixed already.