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>
This commit is contained in:
parent
6ab4a96855
commit
fe9626af29
7 changed files with 59 additions and 68 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue