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

List all existing tool references on rye toolchain remove #1346

Merged

Conversation

soof-golan
Copy link
Contributor

@soof-golan soof-golan commented Aug 21, 2024

Using rye toolchain remove now lists all tools that use a specific toolchain.

This eliminates the Whac-a-Mole game of reiterating through the rye toolchain remove blabla command in order to actually remove it.

Example Usage

$ rye install black --quiet --python 3.11.7
$ rye toolchain remove 3.11.7
error: toolchain cpython@3.11.7 is still in use by tool black
$ rye install ruff --quiet --python 3.11.7
$ rye toolchain remove 3.11.7
error: toolchain cpython@3.11.7 is still in use by tools: black, ruff

(Side note: Rust isn't my main d2d language, feel free to comment on coding style and unidiomatic code)

Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@charliermarsh charliermarsh merged commit d103a75 into astral-sh:main Sep 3, 2024
8 checks passed
@charliermarsh charliermarsh added the enhancement New feature or request label Sep 3, 2024
@soof-golan soof-golan deleted the soof-toolchain-remove-multiref branch September 8, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants