Skip to content

update: verify and include new tagged releases from main index - #96

Merged
mitchellh merged 1 commit into
mainfrom
push-pmyyslwmlnyk
Apr 17, 2026
Merged

mitchellh merged 1 commit into
mainfrom
push-pmyyslwmlnyk

Conversation

@mitchellh

Copy link
Copy Markdown
Owner

The versioned index.json (signed via minisig) is a snapshot tied to the current master nightly and does not include newly tagged releases like 0.16.0. Previously, the script only used this versioned index, so new stable releases were never picked up.

The main index.json at ziglang.org/download includes both releases and master, but is not itself signed. However, every individual tarball has a .minisig signature. For new tagged releases that only appear in the main index, the script now downloads and verifies all tarballs for supported targets against Zig's public key. Only verified releases are merged into the output. Master data continues to come exclusively from the signed versioned index. If any signature check fails, the script falls back to the verified index only.

The versioned index.json (signed via minisig) is a snapshot tied to
the current master nightly and does not include newly tagged releases
like 0.16.0. Previously, the script only used this versioned index,
so new stable releases were never picked up.

The main index.json at ziglang.org/download includes both releases
and master, but is not itself signed. However, every individual
tarball has a .minisig signature. For new tagged releases that only
appear in the main index, the script now downloads and verifies all
tarballs for supported targets against Zig's public key. Only
verified releases are merged into the output. Master data continues
to come exclusively from the signed versioned index. If any signature
check fails, the script falls back to the verified index only.
@mitchellh
mitchellh merged commit d24e211 into main Apr 17, 2026
2 checks passed
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.

1 participant