Skip to content

Difficult to pin clippy, rustc versions due to naming conventions #2792

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

Closed
mcandre opened this issue May 23, 2018 · 5 comments
Closed

Difficult to pin clippy, rustc versions due to naming conventions #2792

mcandre opened this issue May 23, 2018 · 5 comments

Comments

@mcandre
Copy link

mcandre commented May 23, 2018

While waiting for intermittent clippy bugs to be fixed, I would like to roll back to a known working version of clippy and an associated version of rust. However, the naming conventions for nightly, beta, and stable prevent this from happening:

rust 1.27.0-nighty is no longer available for download via rustup under any kind of long term, reusable name. rustup update 1.27.0-nightly, rustup update 1.27.0-beta, and rustup update 1.27.0 all fail. The only way to install 1.27.0 is by using its new name, "beta": rustup update beta.

In addition to this breaking in the future when 1.28.0 becomes the new "beta", this name doesn't even work right now for the task of getting a functioning clippy package installed. clippy 0.0.201 depends specifically on "1.27.0-nightly", rather than "1.27.0", so there appears to be no way of installing clippy 0.0.201 without corrupting the local rustup database to trick it into thinking that "1.27.0" is still a "nightly" release.

Sad panda.

@mcandre mcandre changed the title Unable to pin clippy, rustc versions Difficult to pin clippy, rustc versions due to naming conventions May 23, 2018
@Manishearth
Copy link
Member

There never was such a thing as 1.27-nightly, every nightly in that cycle gets the name.

What you want to do is find the date that nightly branched off and install nightly-date.

Versions work for stable and beta only. Nighties can only be identified by date.

@mcandre
Copy link
Author

mcandre commented May 23, 2018

Update: I managed to find a name for the old 1.27.0-nightly that does work for getting it installed retroactively:

$ rustup update nightly-2018-05-16
$ rustup default nightly-2018-05-16

It stinks that rustup has such awkward naming for these things, but at least this date method seems to work.

@Manishearth
Copy link
Member

It's not that it's awkward, it's the only possible naming convention.

There's no such thing as 1.27 nightly. All nighties are 1.27 nightly for six weeks. It's not a useful identifier.

@mcandre
Copy link
Author

mcandre commented May 23, 2018

@Manishearth In fact, rustup update nightly-2018-05-16 && rustup default nightly-2018-05-16 fails to activate the specified date of rust :(

rust-lang/rustup#1417

@Manishearth
Copy link
Member

Manishearth commented May 23, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants