Skip to content

Avoid unnecessary setup for version reads - #20360

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/skip-frozen-version-python
Jul 14, 2026
Merged

Avoid unnecessary setup for version reads#20360
charliermarsh merged 1 commit into
mainfrom
charlie/skip-frozen-version-python

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

Summary

Reading a project version only requires pyproject.toml, or the lockfile under --frozen, but we previously initialized the cache for every uv version invocation. The frozen path also discovered a Python interpreter solely to construct an installation target.

Skip cache initialization for read-only version commands and construct the frozen lock target directly from the already-discovered workspace. Version updates retain the existing setup, while ordinary and frozen reads now work without a writable cache or available interpreter.

@charliermarsh
charliermarsh marked this pull request as ready for review July 14, 2026 00:12
@charliermarsh
charliermarsh merged commit 8688435 into main Jul 14, 2026
56 checks passed
@charliermarsh
charliermarsh deleted the charlie/skip-frozen-version-python branch July 14, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant