uv/crates/uv-bench
konsti 0109af1aa5
Hint at tool.uv.environments on resolution error (#13455)
Users are not (yet) properly familiar with the concept of universal
resolution and its implication that we need to resolve for all possible
platforms and Python versions. Some projects only target a specific
platform or Python version, and users experience resolution errors due
to failures for other platforms. Indicated by the number of questions we
get about it, `tool.uv.environments` for restricting environments is not
well discoverable.

We add a special hint when resolution failed on a fork disjoint with the
current environment, hinting the user to constrain `requires-python` and
`tool.uv.environments` respectively.

The hint has false positives for cases where the resolution failed on a
different platform, but equally fails on the current platform, in cases
where the non-current fork was tried earlier. Given that conflicts can
be based on `requires-python`, afaik we can't parse whether the current
platform would also be affected from the derivation tree.

Two cases not covered by this are build errors as well as install errors
that need `tool.uv.required-environments`.
2025-06-06 14:17:52 +00:00
..
benches Hint at tool.uv.environments on resolution error (#13455) 2025-06-06 14:17:52 +00:00
inputs Add uv- prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
src Add uv- prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
Cargo.toml Update Rust crate criterion to 0.6.0 (#13771) 2025-06-01 21:57:25 -04:00