-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust 1.66.0 install.sh fails when --without flag is used #105755
Comments
I think given the workaround this is P-low. |
Note that the workaround doesn't work when combined with $ ./install.sh --prefix="$PWD/installed" --without=rust-docs,rust-docs-json-preview
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 '-json-preview'
install: error: manifest for -json-preview does not exist at /home/jongje/166/rust-1.66.0-x86_64-unknown-linux-gnu/-json-preview/manifest.in. see logs at '/home/jongje/166/rust-1.66.0-x86_64-unknown-linux-gnu/installed/lib/rustlib/install.log' |
$ ./install.sh --prefix="$PWD/installed" --without=rust-analysis
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 'rust-analyzer-preview'
install: installing component 'llvm-tools-preview'
install: installing component 'clippy-preview'
install: installing component '-x86_64-unknown-linux-gnu'
install: error: manifest for -x86_64-unknown-linux-gnu does not exist at /home/jongje/166/rust-1.66.0-x86_64-unknown-linux-gnu/-x86_64-unknown-linux-gnu/manifest.in. see logs at '/home/jongje/166/rust-1.66.0-x86_64-unknown-linux-gnu/installed/lib/rustlib/install.log' |
Oh: probably not yet: #101841. |
I think you should reprioritize this issue as this workaround doesn't work when other components are mentioned in |
It's not entirely clear what changed in 1.66, but rust-lang/rust#105755 shows that we are failing to run the install script with --without if there are subsetted component names. This changes the behavior of the filtering to require an *exact* match rather than a partial match, which seems like the better way to go. It's not very clear to me that the previous behavior was actually a good idea.
It's not entirely clear what changed in 1.66, but rust-lang/rust#105755 shows that we are failing to run the install script with --without if there are subsetted component names. This changes the behavior of the filtering to require an *exact* match rather than a partial match, which seems like the better way to go. It's not very clear to me that the previous behavior was actually a good idea.
rust-lang/rust-installer#119 is a potential fix, we'll see if we can get it reviewed. I believe, based on looking at the code, the workaround of passing full names (e.g., rust-analyzer-preview rather than rust-analyzer) or similar should work. rust-lang/rust-installer#119 makes that required for any effect at all. I'm not quite sure what changed with the addition of rust-docs-json-preview, it might be mostly coincidence that this actually had an effect on your particular invocations. |
…n514 Bump rust-installer `--without=component-a,component-b` now requires full component names. This fixes rust-lang#105755 (rust-lang/rust-installer#119). dev-static build succeeded, and installer script seems to work (see comment in thread).
Should that PR be tagged relnotes? Feels like it may be useful to call out for anyone using |
Tagged! |
As Rust 1.66.1 still broken, workaround:
Other components can be added just after the |
We'll aim to backport the PR for 1.67, but we didn't include it in 1.66.1, so that's not surprising that nothing changed. |
* `--without=component-a,component-b` now requires full component names. This fixes rust-lang#105755 (rust-lang/rust-installer#119).
The 1.66.0 release broke something around the
--without
flag toinstall.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, sayit errors out with
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 newrust-docs-json-preview
component, because the install is successful withThe text was updated successfully, but these errors were encountered: