Repository navigation
DRIVERS-3743 Point hatch at the project's uv in post-publish - #152
Merged
Merged
Conversation
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
DRIVERS-3743
Changes in this PR
The post-publish version bump runs
hatch version, and hatch 1.18+ bundles its ownuvand uses it to create its environments. Projects that pin uv with[tool.uv] required-versionreject the bundled version, so environment creation fails and the bump dies with a misleadingOSError: Unable to locate executables directory within: .../hatch-build.Point hatch at the
uvthe setup action installs (which honors the project pin) viaHATCH_ENV_TYPE_VIRTUAL_UV_PATH. If nouvis onPATH, the variable is not set and hatch keeps its bundled one, so the change is a no-op for callers that do not run setup.Test Plan
Reproduced locally with hatch 1.18.2 against a project pinning
required-version = "==0.12.12":HATCH_ENV_TYPE_VIRTUAL_UV_PATHpointing at a compliant uv: environment creation andhatch versionsucceed.Blocked on
Validation in a real release run; the next release dry run after merge should set the following version without error.
Checklist
Checklist for Author
Checklist for Reviewer