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

Add --force option to uv-publish to force upload #12370

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

marc-planard
Copy link

Summary

uv publish currently fails with the error message "error: Local file and index file do not match ... " if an attempt is made to publish a file with same name with a differing hash.
In some situation we want to be able to override this, this change adds a --force option to uv publish to by-pass this and try the upload anyway.

(discussion in #12369 )

Test Plan

$ uv publish --index my-nexus
[...]
error: Local file and index file do not match for $FILE_NAME. If you know what you\'re doing to can still upload this file using the option `--force`. Local: sha256=xxx, Remote: sha256=yyy

$ uv publish --force --index my-nexus
[...]
Uploading $FILE_NAME ($SIZEKiB)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant