Skip to content

fix(sandbox): let pyenv and rbenv shims run their version manager - #33

Merged
mike-diff merged 2 commits into
mainfrom
fix/version-manager-shims
Sep 29, 2026
Merged

mike-diff merged 2 commits into
mainfrom
fix/version-manager-shims

Conversation

@mike-diff

Copy link
Copy Markdown
Owner

A program on PATH that is a pyenv or rbenv shim failed inside the sandbox: the shim execs the version manager under ~/.pyenv, which the sandbox hid. When a resolved program sits in a shims folder and its script names that folder's parent as its *_ROOT, ghafk now also exposes that parent read-only. A shim that names any other root exposes nothing extra.

Found while seeding a Python repository: uv resolved to ~/.pyenv/shims/uv and the checks failed with pyenv: No such file or directory. With the fix, uv sync --frozen && uv run ruff check . && uv run pytest -q passes inside the real sandbox, installing from PyPI through the proxy.

@mike-diff
mike-diff merged commit de0dbc8 into main Sep 29, 2026
2 checks passed
@mike-diff
mike-diff deleted the fix/version-manager-shims branch September 29, 2026 20:33
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.

1 participant