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

uv remove should remove tool.uv.sources entries if it's the only reference #8330

Closed
zanieb opened this issue Oct 18, 2024 · 2 comments · Fixed by #8359
Closed

uv remove should remove tool.uv.sources entries if it's the only reference #8330

zanieb opened this issue Oct 18, 2024 · 2 comments · Fixed by #8359
Labels
bug Something isn't working help wanted Contribution especially encouraged

Comments

@zanieb
Copy link
Member

zanieb commented Oct 18, 2024

e.g. as described in #8328 (comment)

@zanieb zanieb added cli Related to the command line interface bug Something isn't working and removed cli Related to the command line interface labels Oct 18, 2024
@charliermarsh
Copy link
Member

Oh nice.

@j178
Copy link
Contributor

j178 commented Oct 19, 2024

uv remove actually removes entries from tool.uv.sources:

self.remove_source(name)?;

The issue in #8328 (comment) is that the key in tool.uv.sources is example_python_library, but the package name is normalized to example-python-library, so the source is not removed. I think we need to normalize keys in tool.uv.sources before comparison.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Contribution especially encouraged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants