Skip to content

Coordinate tool exports across independent tool stores - #2537

Draft
zaniebot wants to merge 3 commits into
zb/future-20260912-tool-executable-recoveryfrom
zb/opportunity-17-09-tool-export-lock
Draft

zaniebot wants to merge 3 commits into
zb/future-20260912-tool-executable-recoveryfrom
zb/opportunity-17-09-tool-export-lock

Conversation

@zaniebot

@zaniebot zaniebot commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Tool installations in different UV_TOOL_DIR roots can export into the same directory without sharing a lock, so both can pass the existing-file check before either publishes its executable. Coordinate final export checks, receipt writes, repairs and removals through persistent locks in the canonical executable directories. Acquire affected directories in a consistent order and retain admission until removal workers finish, including when their callers are cancelled. On Windows, move a running executable aside before releasing its exported name.

Built on #1981.

@astral-automations-bot astral-automations-bot Bot added the bug Something isn't working label Oct 8, 2026
@codspeed

codspeed Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 25 untouched benchmarks


Comparing zb/opportunity-17-09-tool-export-lock (1ddb163) with zb/future-20260912-tool-executable-recovery (7cf3f0a)

Open in CodSpeed

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant