[pull] main from astral-sh:main#53
Merged
Merged
Conversation
`uv check` currently resolves its standalone `ty` executable from uv’s built-in compatible range, even when the project’s locked development dependencies select a different version or source. When `uv.lock` contains an applicable `ty` package, `uv check` now runs that exact locked package. It first looks in the project’s `dev` group, then falls back to a direct runtime dependency. With `--no-sync` (or when `ty` is excluded by the selected dependency groups), uv materializes only the locked `ty` subgraph into a cached environment without modifying the project environment. The precedence order for ty version selection is now: - the `TY` executable override - an explicit `--ty-version` - the applicable `ty` package from `uv.lock` (if any) - uv’s default constrained range when the lock contains no applicable `ty` development dependency This work was split into several focused pull requests, which are now dependencies of this PR: - [[#19907](https://github.com/astral-sh/uv/pull/19907)](https://github.com/astral-sh/uv/pull/19907) adds the locked-subgraph materialization and cached-installation primitives this PR uses. This PR is stacked on it. - [[#19909](https://github.com/astral-sh/uv/pull/19909)](https://github.com/astral-sh/uv/pull/19909) makes `uv check --no-sync` perform the normal lock operation while skipping environment synchronization. - [[#19892](https://github.com/astral-sh/uv/pull/19892)](https://github.com/astral-sh/uv/pull/19892) adds the hidden `uv check --show-version` flag used to verify version selection. - [[#19913](https://github.com/astral-sh/uv/pull/19913)](https://github.com/astral-sh/uv/pull/19913) moves related `uv check` tests from live PyPI dependencies to deterministic Packse fixtures.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )