-
Notifications
You must be signed in to change notification settings - Fork 732
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
Conversation
e89fd01
to
f876616
Compare
crates/uv/src/lib.rs
Outdated
"`uv publish` does not support `--skip-existing`, \ | ||
use `--check-url` with the simple index URL instead." |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
See #8531 (comment), we hint users coming from twine to use
--check-url
instead.