Skip to content

DRIVERS-3743 Point hatch at the project's uv in post-publish - #152

Merged
aclark4life merged 2 commits into
mainfrom
DRIVERS-3743
Nov 16, 2026
Merged

aclark4life merged 2 commits into
mainfrom
DRIVERS-3743

Conversation

@aclark4life

Copy link
Copy Markdown
Collaborator

DRIVERS-3743

Changes in this PR

The post-publish version bump runs hatch version, and hatch 1.18+ bundles its own uv and uses it to create its environments. Projects that pin uv with [tool.uv] required-version reject the bundled version, so environment creation fails and the bump dies with a misleading OSError: Unable to locate executables directory within: .../hatch-build.

Point hatch at the uv the setup action installs (which honors the project pin) via HATCH_ENV_TYPE_VIRTUAL_UV_PATH. If no uv is on PATH, 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":

  • Bundled uv on the path: environment creation fails with the exact error from the failing release runs.
  • HATCH_ENV_TYPE_VIRTUAL_UV_PATH pointing at a compliant uv: environment creation and hatch version succeed.

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

  • Did you update the changelog (if necessary)?
  • Is the intention of the code captured in relevant tests?
  • If there are new TODOs, has a related JIRA ticket been created?

Checklist for Reviewer

  • Does the title of the PR reference a JIRA Ticket?
  • Do you fully understand the implementation? (Would you be comfortable explaining how this code works to someone else?)
  • Have you checked for spelling & grammar errors?
  • Is all relevant documentation (README or docstring) updated?

Comment thread python/post-publish/action.yml Fixed
@aclark4life
aclark4life marked this pull request as ready for review November 13, 2026 23:12
@aclark4life
aclark4life requested a review from a team as a code owner November 13, 2026 23:12

@blink1073 blink1073 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aclark4life
aclark4life merged commit ecdd6fa into main Nov 16, 2026
10 checks passed
@aclark4life
aclark4life deleted the DRIVERS-3743 branch November 16, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants