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

Support --verbose for rustup show #2992

Merged
merged 2 commits into from
Jun 4, 2022
Merged

Conversation

Enselic
Copy link
Member

@Enselic Enselic commented May 19, 2022

Which prints rustc info for each installed toolchain. I've added a test that you can look at to see some example output.

In case you want to see example output "for real", here is how it looks when I run it locally on my machine:

Click to expand
Default host: aarch64-apple-darwin
rustup home:  /Users/martin/.rustup

installed toolchains
--------------------

stable-aarch64-apple-darwin (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)

nightly-2021-06-01-aarch64-apple-darwin
rustc 1.54.0-nightly (657bc0188 2021-05-31)

nightly-2021-09-01-aarch64-apple-darwin
rustc 1.56.0-nightly (29ef6cf16 2021-08-31)

nightly-2021-10-01-aarch64-apple-darwin
rustc 1.57.0-nightly (aa7aca3b9 2021-09-30)

nightly-2021-10-07-aarch64-apple-darwin
rustc 1.57.0-nightly (0eabf25b9 2021-10-06)

nightly-2021-10-10-aarch64-apple-darwin
rustc 1.57.0-nightly (a8f2463c6 2021-10-09)

nightly-2021-10-11-aarch64-apple-darwin
rustc 1.57.0-nightly (41dfaaa3c 2021-10-10)

nightly-2021-10-13-aarch64-apple-darwin
rustc 1.57.0-nightly (d7c97a02d 2021-10-12)

nightly-2021-10-15-aarch64-apple-darwin
rustc 1.57.0-nightly (e1e9319d9 2021-10-14)

nightly-2021-10-16-aarch64-apple-darwin
rustc 1.57.0-nightly (c1026539b 2021-10-15)

nightly-2021-10-17-aarch64-apple-darwin
rustc 1.57.0-nightly (4e89811b4 2021-10-16)

nightly-2021-10-18-aarch64-apple-darwin
rustc 1.58.0-nightly (1f12ac872 2021-10-17)

nightly-2021-10-19-aarch64-apple-darwin
rustc 1.58.0-nightly (bd41e09da 2021-10-18)

nightly-2021-10-20-aarch64-apple-darwin
rustc 1.58.0-nightly (1af55d19c 2021-10-19)

nightly-2021-10-23-aarch64-apple-darwin
rustc 1.58.0-nightly (514b38779 2021-10-22)

nightly-2021-11-01-aarch64-apple-darwin
rustc 1.58.0-nightly (ff0e14829 2021-10-31)

nightly-2022-01-01-aarch64-apple-darwin
rustc 1.59.0-nightly (cfa3fe5af 2021-12-31)

nightly-2022-01-09-aarch64-apple-darwin
rustc 1.60.0-nightly (a7e2e3396 2022-01-08)

nightly-2022-01-10-aarch64-apple-darwin
rustc 1.60.0-nightly (092e1c9d2 2022-01-09)

nightly-2022-01-11-aarch64-apple-darwin
rustc 1.60.0-nightly (89b9f7b28 2022-01-10)

nightly-2022-01-15-aarch64-apple-darwin
rustc 1.60.0-nightly (ad46af247 2022-01-14)

nightly-2022-01-17-aarch64-apple-darwin
rustc 1.60.0-nightly (bd3cb5256 2022-01-16)

nightly-2022-01-18-aarch64-apple-darwin
rustc 1.60.0-nightly (ee5d8d37b 2022-01-17)

nightly-2022-01-19-aarch64-apple-darwin
rustc 1.60.0-nightly (9ad5d82f8 2022-01-18)

nightly-2022-01-20-aarch64-apple-darwin
rustc 1.60.0-nightly (5e57faa78 2022-01-19)

nightly-2022-03-31-aarch64-apple-darwin
rustc 1.61.0-nightly (c5cf08d37 2022-03-30)

nightly-aarch64-apple-darwin
rustc 1.63.0-nightly (cd282d7f7 2022-05-18)

1.49-aarch64-apple-darwin
rustc 1.49.0 (e1884a8e3 2020-12-29)

1.51-aarch64-apple-darwin
rustc 1.51.0 (2fd73fabe 2021-03-23)

1.53-aarch64-apple-darwin
rustc 1.53.0 (53cb7b09b 2021-06-17)

1.56-aarch64-apple-darwin
rustc 1.56.1 (59eed8a2a 2021-11-01)

1.58-aarch64-apple-darwin
rustc 1.58.1 (db9d1b20b 2022-01-20)

1.59-aarch64-apple-darwin
(rustc does not exist)

93518
rustc 1.62.0-nightly (3a08bd787 2022-05-12)

WherePredicate-bound_param
rustc 1.62.0-nightly (3a08bd787 2022-05-12)

generic-bounds
rustc 1.62.0-nightly (3a08bd787 2022-05-12)

no-assert
rustc 1.62.0-nightly (3a08bd787 2022-05-12)

stage1
rustc 1.62.0-nightly (3a08bd787 2022-05-12)

1.54.0-aarch64-apple-darwin
rustc 1.54.0 (a178d0322 2021-07-26)


active toolchain
----------------

stable-aarch64-apple-darwin (default)
rustc 1.60.0 (7737e0b5c 2022-04-04)

Enselic added 2 commits May 19, 2022 18:30
Which prints rustc info for each installed toolchain. See added test for
example output.
@Enselic Enselic changed the title Show verbose Support --verbose for rustup show May 19, 2022
Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Enselic is this something that you have been wanting, or is it to solve an open issue? If the latter, then could you please update the initial post on the PR so that we know which issue number will be closed by this?

Fundamentally I'm OK with merging this, and I like that you split your PR into the two neat commits.

Once I know if there's an associated issue, I'll look to merge.

@Enselic
Copy link
Member Author

Enselic commented May 20, 2022

Thanks for CR!

This is just scratching an itch of mine. I wanted to know the rustc versions of my nightly toolchains despite having the stable toolchain as the default toolchain, and this seemed the most natural way to do it.

I searched now a bit for existing issues about this but couldn't find any.

@Enselic
Copy link
Member Author

Enselic commented May 26, 2022

In case you didn't see my reply @kinnison because I did not @ you, I now @ you. If you did see it but didn't have time yet to look into merging, there is no urgency of course.

@kinnison kinnison merged commit ffcf901 into rust-lang:master Jun 4, 2022
@Enselic Enselic deleted the show-verbose branch June 4, 2022 12:17
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

Successfully merging this pull request may close these issues.

2 participants