S02-01 - mise and Pins
Purpose: How mise holds the tool versions and the repo tasks, and
how every tool is pinned.
Design
Section titled “Design”mise is the single source of truth for
runtime versions and repo tasks. A contributor needs to know only two
entry points: mise install and mise run <task>.
.mise.toml pins every tool under [tools]. It declares every repo
task under [tasks.<task>].
- Tasks are namespaced
<lang>:<verb>:go:lint,swift:test,doc:build, and so on. - Top-level fan-outs such as
lint,testandciusedepends = [...]on the namespaced tasks.
Exact pins
Section titled “Exact pins”Every tool in [tools] is pinned to an exact version. This is a
supply-chain rule, not a stability one. An upstream compromise must
never arrive by auto-download.
Renovate proposes each new release of a pinned tool 7 days after its
release, and minimum_release_age = "7d" keeps mise up to the same age
(S02-03-dependency-updatesS02-03-dependency-updates: Dependency UpdatesHow Renovate keeps every pin current, and what it leaves to the maintainer.).
Native pin files
Section titled “Native pin files”Native pin files stay authoritative: the go directive in go.work
and go.mod, and the tools version in Package.swift. They must agree
with .mise.toml. Renovate moves the go pin in .mise.toml,
go.work and go.mod in the same pull request.
Status: Active