From 36889387af6844afbce63330bb208e4deea22076 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Tue, 20 Feb 2024 12:28:01 +0100 Subject: [PATCH] chore: don't have golangci-lint update go.mod in CI (#374) --- .golangci.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index cb50c55..a29b7cb 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -1,4 +1,17 @@ run: + # If set, we pass it to "go list -mod={option}". From "go help modules": + # If invoked with -mod=readonly, the go command is disallowed from the implicit + # automatic updating of go.mod described above. Instead, it fails when any changes + # to go.mod are needed. This setting is most useful to check that go.mod does + # not need updates, such as in a continuous integration and testing system. + # If invoked with -mod=vendor, the go command assumes that the vendor + # directory holds the correct copies of dependencies and ignores + # the dependency descriptions in go.mod. + # + # Allowed values: readonly|vendor|mod + # Default: "" + modules-download-mode: readonly + # Include test files or not. # Default: true tests: false