By: Michael Lynch <git@mtlynch.io>
Ignore user Go config in the dev shell The dev shell pins Go 1.25.5, but Go still reads persisted user settings from GOENV by default. A user-level GOROOT override can make the Go 1.25.5 binary invoke Go 1.26.1 tools, causing builds to fail with: compile: version "go1.26.1" does not match go tool version "go1.25.5" Disable user Go config in the dev shell, pin GOROOT to the Nix-provided Go toolchain, and force local toolchain use. This keeps go, GOROOT, GOTOOLDIR, and compile on the same pinned version during `nix develop --command ./dev-scripts/serve`. Testing: - nix develop --command ./dev-scripts/serve - dev-scripts/git-hooks/pre-commit - nix flake check