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

Publish: Hint at --skip-existing -> --check-url transition #8803

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Nov 4, 2024

See #8531 (comment), we hint users coming from twine to use --check-url instead.

uv publish does not support --skip-existing, use --check-url with the simple index URL instead.

@konstin konstin added enhancement New feature or improvement to existing functionality preview Experimental behavior labels Nov 4, 2024
@konstin konstin requested a review from zanieb November 4, 2024 09:36
Comment on lines 1133 to 1134
"`uv publish` does not support `--skip-existing`, \
use `--check-url` with the simple index URL instead."
Copy link
Member

Choose a reason for hiding this comment

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

Can you give users a little more context here?

Copy link
Member

Choose a reason for hiding this comment

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

(I think this will be fairly common to encounter and it seems worth explaining why the API is different)

Copy link
Member Author

@konstin konstin Nov 4, 2024

Choose a reason for hiding this comment

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

Like what sort of context? Explaining why --skip-existing is broken?

Copy link
Member

@zanieb zanieb Nov 4, 2024

Choose a reason for hiding this comment

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

Yeah like

uv publish does not support --skip-existing because there is not a reliable way to identify when an upload fails due to an existing distribution. Instead, use --check-url to provide the URL to the simple API for your index. uv will check the index for existing distributions before attempting uploads.

@zanieb zanieb enabled auto-merge (squash) November 4, 2024 23:18
@zanieb zanieb merged commit c39936e into main Nov 4, 2024
63 checks passed
@zanieb zanieb deleted the konsti/hint-check-url branch November 4, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants