Skip to content

Define a stable Zig toolchain download and pinning strategy #8

@darthfork

Description

@darthfork

The repo rule currently fetches Zig’s live index.json, which is convenient but makes behavior depend on mutable upstream metadata.

Current code:

  • zig/private/zig_repository.bzl
  • zig/extensions.bzl

Tasks:

  • Decide whether live index lookup remains supported, or whether releases should pin version metadata in-repo.
  • Add a stable metadata source for known Zig versions/platforms.
  • Document the upgrade workflow for adding a new Zig release.
  • Ensure sha256 verification is mandatory for all downloaded archives.

Acceptance criteria:

  • Toolchain resolution is reproducible for a pinned zig_version.
  • The process for adding new Zig versions is documented.
  • Downloaded toolchains always verify checksums.

Parent issue: #2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions