From 26055d1963f62f3a05c23ceef75597f00cbf310d Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Tue, 27 Jan 2026 09:22:36 +1100 Subject: [PATCH] .golangci.yaml: warn if go.mod/go.sum is dirty Settin modules-download-mode: readonly causes the linter to complain, rather than silently letting the tooling fix things up behind the scenes. This is a good belt and suspenders check to ensure whats in the commit is what is built at that commit. --- .golangci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index adbe3cc6..aac246bd 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,5 +1,6 @@ version: "2" - +run: + modules-download-mode: readonly issues: max-issues-per-linter: 0 max-same-issues: 0 -- 2.51.2