Skip to content

Pin and validate a project's compiler and standard-library pair by content identity #181

Closed

Description

@LunaStev

Planned for v0.0.3-beta; reviewed against master cd13f1d9c244cfdb207f38412db6c513bd5fd543.

Exact compiler-version requirements and verified installation already exist (#52/#96). Version strings alone do not distinguish rebuilt development compilers or a different standard-library tree. Whale needs to select a prepared compiler/std pair reproducibly, including local bootstrap results.

Acceptance:

  • Define a versioned project toolchain identity policy that can pin the compiler and matching std by content digest, with host-specific identities where needed. Include source revision when reliably available; do not invent provenance for local binaries.
  • Support explicit prepared local compiler/std paths as well as managed installations, and validate the pair before dependency/build mutation.
  • Document interaction with the existing exact compiler requirement, VEX_WAVEC/PATH/managed precedence, overrides and std selection. A conflicting explicit selection must fail clearly rather than silently selecting another binary.
  • Keep capability/schema and package-language compatibility checks independent from version/hash checks.
  • Build/check/run/test and dry-run must work offline without installing or downloading a missing toolchain implicitly. Explicit setup/fetch remains a separate operation.
  • Expose selected identity in doctor, plans/results and cache inputs. Test same-version/different-bytes compilers, changed std, mismatches, prepared local pairs, platform selection and offline preservation.

This extends existing installation verification and freshness capture; it does not add a general toolchain manager or build foreign source trees.

Starting points: compiler selection, std fingerprint capture, toolchain installation.

Activity

  1. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions