Skip to content

better usage of UV_PRERELEASE=allow#13716

Merged
sayakpaul merged 2 commits intomainfrom
uv-prerelease-shenanigans
May 11, 2026
Merged

better usage of UV_PRERELEASE=allow#13716
sayakpaul merged 2 commits intomainfrom
uv-prerelease-shenanigans

Conversation

@sayakpaul
Copy link
Copy Markdown
Member

What does this PR do?

The huggingface_hub RC-testing bot (which produces branches like ci-test-huggingface-hub-1.14.0.rc0-release) rewrites every uv pip install in our workflows to uv pip install --prerelease=allow via a text substitution. On lines that already carried --prerelease allow (added in #12395 so non-RC CI can still install transformers-from-main when it depends on a hub RC), this produced:

uv pip install --prerelease=allow --prerelease allow -U transformers@git+...

uv rejects this:

error: the argument '--prerelease <PRERELEASE>' cannot be used multiple times

Example: https://github.com/huggingface/diffusers/actions/runs/25439680072/job/74627420559

Switching to the UV_PRERELEASE=allow env-var prefix is equivalent and fixes the problem.

@github-actions github-actions Bot added size/S PR with diff < 50 LOC CI and removed size/S PR with diff < 50 LOC labels May 11, 2026
@github-actions github-actions Bot added the size/S PR with diff < 50 LOC label May 11, 2026
@sayakpaul sayakpaul merged commit 6382a3d into main May 11, 2026
13 of 16 checks passed
@sayakpaul sayakpaul deleted the uv-prerelease-shenanigans branch May 11, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI size/S PR with diff < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants