Repository navigation
build(make): pin svu 3.4.1 and guard make bump - #449
Merged
Merged
Conversation
Pin svu in mise.toml (verified by mise.lock) and add make svu-version-check, which make bump runs first: it fails with 'run: mise install' when svu is missing or not the pin. A contract test pins the pin, the lock entry, the recipe order, and each failure branch against fake svu binaries. Closes #425
bketelsen
approved these changes
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #425. #426 already renamed
.svu.yamlto.svu.yml. This PR does the rest of the issue:mise.tomlpinssvu = "3.4.1".mise.lockgets theaqua:caarlos0/svuentry for the same 7 platforms, with checksums and cosign provenance (mise lock, no flags). The go, golangci-lint and node entries do not change.make svu-version-check.make bumpruns it first, before it builds, tests or tags. It fails with exit 1 in these cases:mise.toml pins no svusvu 3.4.1 is required for make bump (not installed; run: mise install)expected svu 3.4.1, found <v> (run: mise install). An svu build that prints noGitVersion:line showsfound unknown.make bumpcalls$(SVU) next(SVU ?= svu), so the check and the tag use the same binary.updex/makefile_bump_svu_contract_test.go. It checks the pin, the lock entry (version, plus sha256 for linux-x64 and linux-arm64), thatbumpruns the check first, and each failure branch, runningmake svu-version-checkagainst fake svu binaries.CI is unchanged: the workflow installs only
golangci-lint(install_args), and nothing in CI runs svu.What
svu nextgives nowOn
mainat 8a1e0f7 with svu 3.4.1:svu currentgivesv2.0.4, andsvu nextgivesv2.1.0.#446 and #447 merged after #448, but with
feat(deps)titles. Dependabot opened them before #448 changed the prefixes, and it does not rename open PRs. svu readsfeatas a minor bump. The only other commit since v2.0.4, #448 itself, isci(deps), which alone gives a patch. If a patch release (v2.0.5) is wanted, a maintainer must pick it, for example withsvu patchinstead ofmake bump. Later Dependabot PRs getbuild(deps)/ci(deps)titles.Note: the svu on this machine's PATH was an old build (
svu version dev, module v1.12.0). The new guard rejects it (found unknown). That is exactly the drift this PR stops.Checks
make fmtmake ci: passes on the committed tree (==> CI gate passed, coverage 86.9%, docs gate, lint 2.13.1, E2E, race, cross-builds)go test ./updex/ -run 'Svu|Bump' -v: 4 tests and 4 behaviour subtests passmise exec -- make -s svu-version-checkexits 0 with the pinned svuRisk classification
Rationale:
make bumptags and pushes at once) and adds a supply-chain tool pin. It does not touch the protected paths.svu.yml,.goreleaser.yamlor.github/workflows/**.make bumpbefore any build or tag, with the fix in the message. It cannot tag a wrong version; it can only refuse to tag.mise.lockchecksum, and records cosign provenance.Docs housekeeping
AGENTS.mdupdated (prerequisites, commands, release automation, troubleshooting). No other doc had wrong svu text.Verification
node scripts/check-docs.mjsgreen (part ofmake ci)