Repository navigation
Description
Affected service
Official Bash and PowerShell installers (frontend/public/install.sh, install.ps1).
Problem
The installers deliberately pin Wave v0.2.1-pre-beta, but put std only beside the compiler. That compiler resolves its default std from the legacy per-user .wave/lib/wave/std location. Installation succeeds because its smoke invocation forces --std-root; an ordinary program importing std can then fail on a fresh user profile.
Wave's compiler-side sibling lookup was fixed in wavefnd/Wave#928 and #932, after the pinned release. This issue owns the remaining installer compatibility and verification work while retaining the v0.2.1-pre-beta pin.
Safe reproduction steps
Source-confirmed at wave-platform 01779095bb13f8aa2796137b87764be0aad852cd:
frontend/public/install.shpins v0.2.1-pre-beta and copies the package, includingstd/, into the compiler installation directory. PowerShell does the same.- Release commit
57376ea90d293e07280b39b1837b71145cc87b20calls the HOME/USERPROFILE-based std helper, with no executable-sibling lookup. - Both installers pass
--std-rootin their post-install checks, bypassing default lookup.
A disposable test of the actual shell verification helper accepts a fake compiler that works only with the explicit override and fails ordinary invocation. That tests the smoke-test gap; no real user installation was modified or actual release compiler executed during the audit.
Expected behavior
An installation of the pinned release supports its ordinary default std lookup, and the installer verifies it without an explicit std override. Failure restores the previous compiler and std.
Actual behavior
A fresh profile can complete installation yet require --std-root for every program importing std.
Scope
Install the matching packaged std at the pinned compiler's per-user lookup path, preserving the compiler-adjacent copy. Respect the compiler's HOME/USERPROFILE selection on Windows and custom compiler installation directories. Stage/activate/restore the std tree with the existing package recovery path, handle shared std locks and unsafe overlapping destinations, and exercise default lookup in the smoke check.
Preserve v0.2.1-pre-beta selection, asset digests, latest optional Vex behavior, target support and normal argument contracts. No release/channel change or website deployment is part of this issue.
Environment
Audited from Linux amd64; both installer sources reviewed. Native Windows/macOS/FreeBSD execution was not claimed.
Completion criteria
- Fresh/custom-directory installs can use std without
--std-root. - Existing compiler and std trees survive activation, smoke and rollback failures, with recovery backups retained if restoration fails.
- Both Windows architectures and supported Unix target selection remain covered by fixture tests.
- The release pin, checksum enforcement and Vex selection remain unchanged.
Verification
- Searched open/closed issues and current PRs; related Install the latest Wave release with staged recovery #476 introduced staged installer recovery, not this missing std destination.
- No secrets or private working instructions are included.
Activity