From fe9626af296f7c7893af8cff88bc4195724bea07 Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 16 Mar 2022 03:50:26 +0100 Subject: Use `go run` for tool dependencies, require go 1.17 (#18874) This ensures the tools only run in the versions we've tested and it also does not polute PATH with those tools so they are truly isolated. This syntax of `go run` requires go 1.17, so the minimum version is set accordingly. Fixes: https://github.com/go-gitea/gitea/issues/18867 Co-authored-by: techknowlogick --- .golangci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.golangci.yml') diff --git a/.golangci.yml b/.golangci.yml index 91faa75d73..f06c9cc480 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -23,7 +23,7 @@ linters: fast: false run: - timeout: 3m + timeout: 10m skip-dirs: - node_modules - public @@ -64,7 +64,7 @@ linters-settings: - name: modifies-value-receiver gofumpt: extra-rules: true - lang-version: 1.16 + lang-version: 1.17 issues: exclude-rules: -- cgit v1.2.3