Skip to content
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

Manifest issue with "preview" components #119164

Open
mbrossard opened this issue Dec 20, 2023 · 3 comments
Open

Manifest issue with "preview" components #119164

mbrossard opened this issue Dec 20, 2023 · 3 comments
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@mbrossard
Copy link

I was asked to file an issue following a Zulip question.

I was able to install the llvm-tools component. Following some confusion, it turns out that this should not work since it should only be installable as llvm-tools-preview.
Following some research, https://static.rust-lang.org/dist/2023-01-26/channel-rust-1.67.toml contains the following section (that https://static.rust-lang.org/dist/2022-12-15/channel-rust-1.66.toml did not):

[renames.llvm-tools]
to = "llvm-tools-preview"

I think the issue arose with a3dd94e and 494cb47 where I think there was a conflation of components that had preview status (needing a rename section) and components that currently have preview status (that should not have a rename). Looking at pkgtype! in https://github.com/rust-lang/rust/blob/master/src/tools/build-manifest/src/versions.rs#L41 there are I think two distinct groups of components with preview=true:

  • rls, rust-analyzer, clippy and rustfmt which are stable (and probably were historically previews).
  • llvm-tools, miri, rust-docs-json and rustc-codegen-cranelift which are not stable.

The main issue is that the components of the second group should currently only be added with their -preview suffix but currently can be added without the suffix.

@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 20, 2023
@mbrossard
Copy link
Author

@Mark-Simulacrum requested this issue to be labeled T-bootstrap + T-infra.

@thejpster
Copy link
Contributor

Can be, and is:

https://github.com/search?q=%22rustup+component+add+llvm-tools+%22&type=code (plus a bunch more that are harder to search for because tools isn't followed by a space character)

I've certainly been using the 'new' name, thinking it had been stablised:

https://github.com/search?q=org%3ANeotron-Compute%20llvm-tools&type=code

@saethlin saethlin added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Dec 20, 2023
@RalfJung
Copy link
Member

For Miri, AFAIK it was intentional to make the component available as miri -- the key thing is that it only exists on nightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

5 participants