Skip to content

[Bug]: Install pinned Wave std at its default lookup path #487

Closed

Description

@LunaStev

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:

  1. frontend/public/install.sh pins v0.2.1-pre-beta and copies the package, including std/, into the compiler installation directory. PowerShell does the same.
  2. Release commit 57376ea90d293e07280b39b1837b71145cc87b20 calls the HOME/USERPROFILE-based std helper, with no executable-sibling lookup.
  3. Both installers pass --std-root in 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

Activity

  1. added
    bug
    difficulty: intermediate
    on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdifficulty: intermediate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions