Repository navigation
Retry uv lock until PyPI's simple index names the release - #3
Merged
Merged
Conversation
PyPI's JSON API named unref 0.5.1 before the simple index that uv lock reads, so the mirror started by unref's release failed to lock it. The index is cached for up to 10 minutes, so uv lock is retried for 12. Assisted-by: Claude:claude-opus-5-5
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.
The mirror started by unref's release of v0.5.1 failed: PyPI's JSON API already named 0.5.1, but
uv lockran 21 seconds after the upload and the simple index it reads did not name it yet (run).The simple index is cached for up to 10 minutes (
cache-control: max-age=600), souv lockis now retried every 15 seconds for up to 12 minutes, with--refresh-package unrefso uv does not reuse its own cache of the index. Each failed attempt is logged with uv's error.Tested locally: locking a version that does not exist retries and then raises, and locking 0.5.1 succeeds on the first attempt.
Goes with Apakottur/unref#286, which starts the mirror again from the release until the tag exists.