Skip to content

build: pin tools in mise.toml/mise.lock and Go in go.mod's toolchain line - #63

Merged
bketelsen merged 2 commits into
mainfrom
feat/mise-pins
Aug 24, 2026
Merged

bketelsen merged 2 commits into
mainfrom
feat/mise-pins

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Phase 3 of Snowcat's repository tooling rollout — the std pilot for core ADR-0043 / Snowcat ADR-0076.

  • mise.toml pins golangci-lint 2.13.1 and enables Go from go.mod; mise.lock carries per-platform URL + SHA256 (attestations verified at install; a tampered checksum is refused with expected/actual — tested).
  • go.mod: go 1.26 + toolchain go1.26.7. mise is deprecating reading the go directive (removal 2026.11) and reads toolchain; go mod tidy drops a toolchain line equal to the go line, so this is the only shape where the exact pin survives. setup-go and GOTOOLCHAIN=local read the same line.
  • Makefile reads both pins from those files (no version literal anywhere else); make verify gains the Go/lint order guard (a linter built with an older Go than the toolchain fails naming the fix); a missing tool says mise install.
  • CI: jdx/mise-action (SHA-pinned v4.2.5) installs from the lock instead of sed-ing the Makefile.

Verified locally under mise: make verify → 0 issues, tests ok, tree clean; guard fires on a fake older-Go linter; make lint fails without the tool.

Risk tier: 2 — CI workflow change (.github/workflows/**), build tooling only.

🤖 Generated with Claude Code

bketelsen and others added 2 commits August 24, 2026 11:24
…line

The mise pilot for core ADR-0043 / Snowcat ADR-0076. mise.toml pins
golangci-lint and enables reading Go from go.mod; mise.lock carries the
per-platform URL and SHA256 (GitHub attestations verified at install; a
tampered checksum is refused). go.mod moves to `go 1.26` + `toolchain
go1.26.7`: the toolchain line is the exact build pin that mise, setup-go,
and GOTOOLCHAIN=local all read, and `go mod tidy` drops a toolchain line
equal to the go line, so the two cannot both say 1.26.7.

The Makefile reads the linter pin from mise.toml and the Go pin from the
toolchain line, and `make verify` refuses a golangci-lint built with an
older Go than the toolchain — the gofmt flip-flop of 2026-08-24 as a
one-line failure instead of a mystery. CI installs the locked tools with
jdx/mise-action instead of sed-ing the Makefile. A missing tool says
`mise install`.

Co-Authored-By: Claude Fable 5 <[email protected]>
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