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

Error when multiple git references are provided in uv add #5502

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

eth3lbert
Copy link
Contributor

Summary

This PR allows us to reject specifying more than one git-ref at the cli level.

Test Plan

Test cases included.

@eth3lbert eth3lbert force-pushed the add-group-gitref branch 2 times, most recently from 2572de7 to def261d Compare July 27, 2024 01:26
@eth3lbert eth3lbert changed the title Add git-ref group for uv add Add git-ref group for uv add Jul 27, 2024
This allows us to reject specifying more than one git-ref at the CLI level.
@zanieb
Copy link
Member

zanieb commented Jul 30, 2024

I wonder if there's a use-case where we'd want to allow multiple to be passed and just confirm they resolve to consistent values? Seems weird though.

@zanieb zanieb added cli Related to the command line interface preview Experimental behavior labels Jul 30, 2024
@zanieb zanieb merged commit fc78561 into astral-sh:main Jul 30, 2024
55 checks passed
@zanieb zanieb changed the title Add git-ref group for uv add Error when multiple git references are provided in uv add Jul 30, 2024
@eth3lbert
Copy link
Contributor Author

I wonder if there's a use-case where we'd want to allow multiple to be passed and just confirm they resolve to consistent values? Seems weird though.

I think that would cause more trouble than it's worth, and might consider using rev instead. 😅

@eth3lbert eth3lbert deleted the add-group-gitref branch July 30, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants