aboutsummaryrefslogtreecommitdiff
path: root/.golangci.yml
diff options
context:
space:
mode:
authorsilverwind2022-03-16 03:50:26 +0100
committerGitHub2022-03-15 22:50:26 -0400
commitfe9626af296f7c7893af8cff88bc4195724bea07 (patch)
tree7a53ba47454d62c52128da1cf9f2ed723af97bbd /.golangci.yml
parent6ab4a96855e472f3a8f86b2e7f66a9cc714fa447 (diff)
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 <techknowlogick@gitea.io>
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 91faa75d7..f06c9cc48 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: