Skip to content

Avoid clobbering symlinked hermes launcher during install#20747

Closed
vKongv wants to merge 3 commits into
NousResearch:mainfrom
pebble-tech:fix/launcher-symlink-clobber-upstream
Closed

Avoid clobbering symlinked hermes launcher during install#20747
vKongv wants to merge 3 commits into
NousResearch:mainfrom
pebble-tech:fix/launcher-symlink-clobber-upstream

Conversation

@vKongv

@vKongv vKongv commented May 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Prevent scripts/install.sh from overwriting the real venv/bin/hermes entrypoint when the user-facing launcher path is a symlink back into the venv.

Changes

  • write the launcher shim to a temporary file before moving it into hermes
  • keep the existing PYTHONPATH / PYTHONHOME sanitization behavior intact
  • add a regression test that reproduces the symlinked-launcher layout and verifies the venv entrypoint is preserved

Tests

  • scripts/run_tests.sh tests/test_install_sh_pythonpath_sanitization.py

@github-actions github-actions Bot force-pushed the fix/launcher-symlink-clobber-upstream branch from 7a96b1b to 0c72feb Compare May 6, 2026 13:49
@alt-glitch alt-glitch added type/bug Something isn't working comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have labels May 6, 2026
@vKongv vKongv force-pushed the fix/launcher-symlink-clobber-upstream branch from 0c72feb to a571984 Compare May 11, 2026 06:23
@github-actions github-actions Bot force-pushed the fix/launcher-symlink-clobber-upstream branch from a571984 to 6ab5875 Compare May 11, 2026 15:59
@github-actions github-actions Bot force-pushed the fix/launcher-symlink-clobber-upstream branch from 6ab5875 to 943962c Compare May 13, 2026 07:45
@vKongv vKongv force-pushed the fix/launcher-symlink-clobber-upstream branch from 943962c to 015214b Compare May 13, 2026 07:53
@vKongv vKongv force-pushed the fix/launcher-symlink-clobber-upstream branch from 015214b to d9efde1 Compare May 13, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants