bazelbuild / bazelbuild/rules_rust

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

Open
#2,463 0 comments 0 reactions 0 assignees View on GitHub
needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3637#018d776d-4ed3-4d99-ba13-a0ef3e3a9f67

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: https://buildkite.com/bazel/bazel-auto-sheriff-face-with-cowboy-hat/builds/1547#:~:text=Culprit%20Found%3A-,f13f3f4e5cc2edd0a870618597cfb98972c8c45e,-Broken%20projects%20with

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.