Skip to content

Account for launcher overrides in interpreter cache keys - #610

Closed
zaniebot wants to merge 4 commits into
mainfrom
zb/fix-bug/21062
Closed

zaniebot wants to merge 4 commits into
mainfrom
zb/fix-bug/21062

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

PYTHONEXECUTABLE and __PYVENV_LAUNCHER__ can change the executable and virtual environment reported by a Python interpreter, but interpreter metadata was cached using only the absolute and canonical paths of the requested executable. Include both launcher overrides in the interpreter cache key so metadata from one launcher context cannot be reused in another. See astral-sh#21062.

@astral-automations-bot astral-automations-bot Bot added bug Something isn't working area:cache Caching of packages and metadata labels Aug 12, 2026
@zanieb
zanieb marked this pull request as ready for review August 12, 2026 15:39
@astral-automations-bot
astral-automations-bot Bot changed the base branch from zb/reproduce-bug/21062 to main August 12, 2026 15:41
@astral-automations-bot

Copy link
Copy Markdown

Promoted to #21075.

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

Labels

area:cache Caching of packages and metadata bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants