Skip to content

Rust 1.66.0 install.sh fails when --without flag is used #105755

Closed
@jonhoo

Description

@jonhoo

The 1.66.0 release broke something around the --without flag to install.sh. If I download and extract https://static.rust-lang.org/dist/rust-1.66.0-x86_64-unknown-linux-gnu.tar.gz, and then run, say

./install.sh --prefix="$PWD/installed" --without=rust-analyzer

it errors out with

install: uninstalling component 'rustc'
install: uninstalling component 'rust-std-x86_64-unknown-linux-gnu'
install: creating uninstall script at /home/jongje/166/rust-1.66.0-x86_64-unknown-linux-gnu/installed/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'rust-std-x86_64-unknown-linux-gnu'
install: installing component 'rust-docs'
install: installing component 'rust-docs-json-preview'
install: installing component 'rust-demangler-preview'
install: installing component 'cargo'
install: installing component 'rustfmt-preview'
install: installing component 'rls-preview'
install: installing component '-preview'
install: error: manifest for -preview does not exist at /home/jongje/166/rust-1.66.0-x86_64-unknown-linux-gnu/-preview/manifest.in. see logs at '/home/jongje/166/rust-1.66.0-x86_64-unknown-linux-gnu/installed/lib/rustlib/install.log'

The same thing happens when other components are named in --without. The install completes successfully when --without isn't used. It appears the problem is with the new rust-docs-json-preview component, because the install is successful with

./install.sh --prefix="$PWD/installed" --without=rust-docs-json-preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.P-mediumMedium priorityregression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions