Skip to content

[Bazel CI] ERROR: Bazel-Rust Version Incompatibility: Starlark sort_key Error #676

@deepalak56

Description

@deepalak56

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5360#019d2854-1cc1-40ff-a396-f8b86d270915

Platform: Ubuntu, MacOs

Logs:

(04:08:40) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/6fc256568ad54f369e71b1a1f1faf373/external/rules_rust+/rust/extensions.bzl:272:44: Traceback (most recent call last):
--
File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/6fc256568ad54f369e71b1a1f1faf373/external/rules_rust+/rust/extensions.bzl", line 272, column 44, in _rust_host_tools_impl
rust_toolchain_tools_repository(
Error in repository_rule: unexpected Starlark value: <sort_key> (of type sort_key)
(04:08:40) ERROR: error evaluating module extension @@rules_rust+//rust:extensions.bzl%rust_host_tools
(04:08:40) INFO: Elapsed time: 1.542s
(04:08:40) INFO: 0 processes.
(04:08:40) ERROR: Build did NOT complete successfully
(04:08:40) FAILED:
Fetching module extension @@rules_rust+//crate_universe:extension.bzl%crate; starting
Fetching module extension @@rules_rust+//rust:extensions.bzl%rust_host_tools; starting
bazel build failed with exit code 48
🚨 Error: The command exited with status 48

Culprit:

Steps:

git clone -v https://github.com/bazelbuild/examples.git
git reset daadf13 --hard
export USE_BAZEL_VERSION=cca38cb9d3b46e92ea008eea8dfef701efdcbb6b
bazel build --config=remote --lockfile_mode=off -- //...

CC Greenteam @meteorcloudy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions