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

Glob support for rustup toolchain remove #2530

Open
est31 opened this issue Oct 20, 2020 · 7 comments
Open

Glob support for rustup toolchain remove #2530

est31 opened this issue Oct 20, 2020 · 7 comments
Milestone

Comments

@est31
Copy link
Member

est31 commented Oct 20, 2020

I have 63 toolchains, culminating in 40GB of hard drive use. I'd love to remove all nightlies, but I have to add the nightlies one by one. It would be great if one could specify regexes like rustup toolchain remove nightly-*.

@est31
Copy link
Member Author

est31 commented Oct 20, 2020

Workaround: rustup toolchain list | rg ^nightly-20 | xargs rustup toolchain uninstall

@kinnison
Copy link
Contributor

Pattern based support for removing toolchains would be a fun enhancement though as you say you can script it instead.

While I don't feel this needs to be in rustup I'd not object if someone wanted to work on it.

@camelid
Copy link
Member

camelid commented Oct 27, 2020

@rustbot claim

@rustbot
Copy link
Collaborator

rustbot commented Oct 27, 2020

Error: This repository is not enabled to use triagebot.
Add a triagebot.toml in the root of the master branch to enable it.

Please let @rust-lang/release know if you're having trouble with this bot.

@kinnison
Copy link
Contributor

@camelid We don't use a lot of the integration bots on this repo, so just saying in a comment you want to do this is enough. We're not a massively popular repo for contributions :D

@jyn514
Copy link
Member

jyn514 commented Nov 3, 2020

Personally, I'd rather do this through shell scripting than rustup itself. I don't see much benefit of adding it to rustup directly.

@rami3l rami3l added this to the 1.29.0 milestone Jul 10, 2024
@djc djc changed the title Regex support for rustup toolchain remove Glob support for rustup toolchain remove Jul 11, 2024
@rami3l
Copy link
Member

rami3l commented Nov 25, 2024

FYI, now it's easier to parse rustup's output if you want to script the behavior:

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

Successfully merging a pull request may close this issue.

6 participants