Skip uploads when validation reports 'Already uploaded'#17412
Merged
charliermarsh merged 1 commit intomainfrom Jan 27, 2026
Merged
Skip uploads when validation reports 'Already uploaded'#17412charliermarsh merged 1 commit intomainfrom
charliermarsh merged 1 commit intomainfrom
Conversation
067be36 to
3e79c9d
Compare
3e79c9d to
a564802
Compare
zanieb
approved these changes
Jan 12, 2026
konstin
reviewed
Jan 13, 2026
crates/uv-publish/src/lib.rs
Outdated
| match response.text().await { | ||
| Ok(body) => { | ||
| trace!("Response content for {validation_url}: {body}"); | ||
| if body == "Already uploaded" { |
Member
There was a problem hiding this comment.
Can we use something typed like JSON for this instead of parsing plain text bodies?
a564802 to
70a4cba
Compare
zashfield59-boop
pushed a commit
to zashfield59-boop/uv
that referenced
this pull request
Jan 28, 2026
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Feb 2, 2026
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [astral-sh/uv](https://github.com/astral-sh/uv) | patch | `0.9.27` → `0.9.28` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>astral-sh/uv (astral-sh/uv)</summary> ### [`v0.9.28`](https://github.com/astral-sh/uv/blob/HEAD/CHANGELOG.md#0928) [Compare Source](astral-sh/uv@0.9.27...0.9.28) Released on 2026-01-29. ##### Python - Update CPython to use [OpenSSL 3.5.5](https://github.com/openssl/openssl/releases/tag/openssl-3.5.5) which includes fixes for high severity CVEs ([python-build-standalone#960](astral-sh/python-build-standalone#960)) ##### Enhancements - Add support for Pyodide interpreter on Windows ([#​17658](astral-sh/uv#17658)) - Warn if multiple indexes include `default = true` ([#​17713](astral-sh/uv#17713)) - Skip uploads when validation reports 'Already uploaded' ([#​17412](astral-sh/uv#17412)) ##### Configuration - Add a reflink alias for the "clone" link mode ([#​17724](astral-sh/uv#17724)) ##### Bug fixes - Ensure `uv.exe` exits when `uvw.exe` or `uvx.exe` is killed ([#​17500](astral-sh/uv#17500)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45NC42IiwidXBkYXRlZEluVmVyIjoiNDIuOTQuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6OnBhdGNoIl19-->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
If the file was already uploaded,
/validatealready tells us that.