assert-trusted-stamp

command
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command assert-trusted-stamp asserts the GoReleaser-built binary in dist/ is version-stamped and TRUSTED. Shared by ci.yml (snapshot, every PR) and release.yml (the real tagged build, before anything is published) — one program, two callers, so the two workflows cannot drift apart.

WHY THIS EXISTS. A release-breaking regression shipped undetected on 2026-07-23: isReleaseVersion wrongly required a leading "v", but GoReleaser's {{ .Version }} stamps the tag with "v" stripped. Every released binary resolved to a STAMPED-BUT-UNTRUSTED string — never the bare "dev" sentinel, so a "not dev" check passed — while still being annotated "(unreleased build)" and failing every engine: constraint.

So it asserts the reported version matches what GoReleaser actually stamped (dist/metadata.json) and carries no unreleased annotation. There is no separate `ver == "dev"` guard: the exact-match check already exits for any version that is not the stamped one, and the stamped one is never "dev".

Replaces .github/scripts/assert-trusted-stamp.sh.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL