Skip to content

feat(dev): --pure starts from no loaded modules and no loader variables - #331

Merged
HaoZeke merged 2 commits into
mainfrom
feat/dev-pure-stacked
Nov 19, 2026
Merged

HaoZeke merged 2 commits into
mainfrom
feat/dev-pure-stacked

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

eb-local dev --pure MODULE... adds two lines, after a module command exists and before the stack loads:

module purge >/dev/null 2>&1 || true
unset LD_LIBRARY_PATH LD_PRELOAD LD_AUDIT
  • The rest of the lines is what dev prints without the option.
  • The eval hint repeats --pure, and the LD_LIBRARY_PATH warning is not printed, since the lines unset it.
  • Sticky modules survive module purge. A site that preloads a library for every process (XALT through LD_PRELOAD) loses that in this shell; the reference says so.

Checked

The zig workflow on the branch: 575 tests on x86_64 and aarch64 with both branches below it (570 on main). The new test compares the lines with and without the option and their order.

Closes #330

Without it the modules a shell already has stay loaded beside the ones
dev names. --pure runs module purge and unsets LD_LIBRARY_PATH,
LD_PRELOAD and LD_AUDIT once a module command exists and before the
stack loads. The eval hint repeats the option.
@HaoZeke
HaoZeke merged commit 09d1871 into main Nov 19, 2026
3 checks passed
@HaoZeke
HaoZeke deleted the feat/dev-pure-stacked branch November 19, 2026 15:02
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.

dev: the build environment inherits whatever the shell had loaded

1 participant