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

Avoid enforcing distribution ID uniqueness for extras #4104

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

The condition enforced here isn't quite right. The same dependency can appear multiple times, as long as the extra is different.

Closes #4101.

@charliermarsh charliermarsh added the bug Something isn't working label Jun 6, 2024
@charliermarsh
Copy link
Member Author

I want to do some more refactors to make this mistake harder / clearer in the future, but I'll do that separately.

@charliermarsh charliermarsh enabled auto-merge (squash) June 6, 2024 15:15
@charliermarsh charliermarsh added the preview Experimental behavior label Jun 6, 2024
@charliermarsh charliermarsh merged commit 30e73a6 into main Jun 6, 2024
46 checks passed
@charliermarsh charliermarsh deleted the charlie/l branch June 6, 2024 15:21
Copy link
Member

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

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

Yeah I think the original intent here is that an ID would uniquely identify a distribution, and that a Dependency was just a reference to a distribution. But a Dependency has evolved a bit to include additional information (and it might include more), so I think this is right...

@charliermarsh
Copy link
Member Author

Yeah I might change this to DependencyId or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

uv run: Duplicate dependency when using extra
2 participants