fleetlint Policy for a fleet of repositories
v0.3
Getting started

repo/toolchain-pinned

Toolchain version is pinned

Severitywarning
Tiers1, 2
Stacksany
Scopeeach
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-recommended@0.1.0

Requirement

Each stack pins its toolchain in a file the tools read: a toolchain directive or a full go 1.x.y version in go.mod, .python-version, rust-toolchain.toml, .nvmrc or .node-version, the Gradle wrapper, .fvmrc; .tool-versions or mise.toml also count.

Why

Without a pin, every machine and every CI run builds with whatever compiler or runtime happens to be installed, and failures cannot be reproduced.

Check

For each item in:

repo.stacks
(item != "go" || scan("go.mod", "^(toolchain go\\d+\\.\\d+|go \\d+\\.\\d+\\.\\d+)").size() > 0) && (item != "python" || file(".python-version") || file(".tool-versions") || file("mise.toml")) && (item != "rust" || file("rust-toolchain.toml") || file("rust-toolchain")) && (item != "node" || file(".nvmrc") || file(".node-version") || file(".tool-versions") || file("mise.toml") || scan("package.json", "\"volta\"\\s*:").size() > 0) && (item != "kotlin" || file("gradle/wrapper/gradle-wrapper.properties")) && (item != "flutter" || file(".fvmrc") || file(".fvm/fvm_config.json") || file(".tool-versions") || file("mise.toml")) && (item != "java" || file(".java-version") || file(".sdkmanrc") || file(".tool-versions") || file("mise.toml") || file(".mvn/wrapper/maven-wrapper.properties")) && (item != "dotnet" || file("global.json")) && (item != "ruby" || file(".ruby-version") || file(".tool-versions") || file("mise.toml")) && (item != "php" || file(".php-version") || file(".tool-versions") || file("mise.toml") || grep("composer.json", "\"platform\"").size() > 0)

Fix

Add the stack’s version file with the version you build with today.

Agent instruction: Add the stack’s toolchain pin (go.mod toolchain directive, .python-version, rust-toolchain.toml, .nvmrc, Gradle wrapper, .fvmrc) set to the version currently installed; do not upgrade the toolchain in the same change.

See: https://fleetlint.org/baseline/#hygiene, https://fleetlint.org/stacks/


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.