From 01de43e6dc19b7407d6829b07cba314d2eb9e75a Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 12 Apr 2022 12:14:42 -0700 Subject: [PATCH] Explicitly set go version in linter config. --- .golangci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index b61559c86..6a0c6a4db 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,6 +2,11 @@ run: tests: false modules-download-mode: readonly + # Define the Go version limit. + # Mainly related to generics support in go1.18. + # Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17 + go: '1.17' + issues: # The linter has a default list of ignorable errors. Turning this on will enable that list. exclude-use-default: false