Skip to content

Enforce available distributions for supported environments#18451

Merged
charliermarsh merged 1 commit intomainfrom
charlie/enforce-supported
Mar 16, 2026
Merged

Enforce available distributions for supported environments#18451
charliermarsh merged 1 commit intomainfrom
charlie/enforce-supported

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh commented Mar 13, 2026

Summary

A revival of #17118. We now enforce that builds are available for all supported environments in addition to required environments.

Closes #17067.

Closes #17060.

@charliermarsh charliermarsh added the bug Something isn't working label Mar 13, 2026
@charliermarsh charliermarsh force-pushed the charlie/filter-supported branch from 6f9d0d4 to 8138136 Compare March 13, 2026 17:16
@charliermarsh charliermarsh force-pushed the charlie/enforce-supported branch from 8cceeb5 to 1dc43cf Compare March 13, 2026 17:19
Base automatically changed from charlie/filter-supported to main March 13, 2026 18:46
@charliermarsh charliermarsh force-pushed the charlie/enforce-supported branch from 1dc43cf to 4ba3ab9 Compare March 13, 2026 19:08
@charliermarsh charliermarsh force-pushed the charlie/enforce-supported branch from 4ba3ab9 to 94b4e4d Compare March 13, 2026 21:24
@charliermarsh charliermarsh marked this pull request as ready for review March 13, 2026 21:55
@charliermarsh charliermarsh requested review from konstin and zanieb March 13, 2026 21:55
@charliermarsh charliermarsh merged commit 99de532 into main Mar 16, 2026
104 of 106 checks passed
@charliermarsh charliermarsh deleted the charlie/enforce-supported branch March 16, 2026 11:56
zaniebot pushed a commit to zaniebot/uv that referenced this pull request Mar 17, 2026
…verage

PR astral-sh#18451 changed `artifact_environments` from only `required_environments`
to `supported_environments + required_environments`, causing
`tool.uv.environments` to enforce artifact coverage. This breaks packages
like flashinfer-jit-cache that provide platform-specific wheels from custom
indexes when the environment can't be forked further.

Split `artifact_environments` into separate `supported_environments` and
`required_environments` fields. For `supported_environments` (from
`tool.uv.environments`), fork when possible but skip when forking fails.
For `required_environments` (from `tool.uv.required-environments`), keep
the existing behavior of erroring when forking fails.

URL dependencies continue to enforce coverage for both supported and
required environments since they are explicit pinned files.

Fixes astral-sh#18527

https://claude.ai/code/session_01DHYzoSf5k4hoWSNgKCSj9y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lockfile with package that has no distributions with environments UV took the wrong torch nightly for the Linux and Windows Platform

2 participants