Skip to content

rust: Fails since Rust 1.87.0 (2025-05-15) #1361

Description

Rust 1.87.0 has finally removed the long deprecated RLS (see also Previous Components), but the rust feature unfortunately installs that component unconditionally:

rustup component add rls rust-analysis rust-src rustfmt clippy 2>&1

This results in a build error:

#17 21.24 Installing common Rust dependencies...
#17 21.39 error: toolchain 'stable-x86_64-unknown-linux-gnu' does not contain component 'rls' for target 'x86_64-unknown-linux-gnu'; did you mean 'rustc'?
#17 21.40 ERROR: Feature "Rust" (ghcr.io/devcontainers/features/rust) failed to install! Look at the documentation at ********/devcontainers/features/tree/main/src/rust for help troubleshooting this error.
#17 ERROR: process "/bin/sh -c cp -ar /tmp/build-features-src/rust_2 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/rust_2  && cd /tmp/dev-container-features/rust_2  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/rust_2" did not complete successfully: exit code: 1

and "This codespace is currently running in recovery mode due to a container error."

Can we please drop rls and rust-analysis from the rustup component add invocation?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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