Unify all go version to 1.20 (#2069)
parent
c3a93d8db2
commit
005b10ea9b
|
|
@ -21,7 +21,8 @@ jobs:
|
|||
- name: Install Go
|
||||
uses: actions/setup-go@v4.0.0
|
||||
with:
|
||||
go-version: 1.19
|
||||
go-version-file: go.mod
|
||||
cache-dependency-path: go.sum
|
||||
|
||||
- name: Setup GO env
|
||||
run: go env -w CGO_ENABLED=0
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@ linters-settings:
|
|||
|
||||
gosimple:
|
||||
# Select the Go version to target. The default is '1.13'.
|
||||
go: "1.15"
|
||||
go: "1.20"
|
||||
# https://staticcheck.io/docs/options#checks
|
||||
checks: ["all"]
|
||||
|
||||
|
|
@ -515,13 +515,13 @@ linters-settings:
|
|||
|
||||
staticcheck:
|
||||
# Select the Go version to target. The default is '1.13'.
|
||||
go: "1.15"
|
||||
go: "1.20"
|
||||
# https://staticcheck.io/docs/options#checks
|
||||
checks: ["all"]
|
||||
|
||||
stylecheck:
|
||||
# Select the Go version to target. The default is '1.13'.
|
||||
go: "1.15"
|
||||
go: "1.20"
|
||||
# https://staticcheck.io/docs/options#checks
|
||||
checks:
|
||||
["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022"]
|
||||
|
|
@ -616,7 +616,7 @@ linters-settings:
|
|||
|
||||
unused:
|
||||
# Select the Go version to target. The default is '1.13'.
|
||||
go: "1.15"
|
||||
go: "1.20"
|
||||
|
||||
whitespace:
|
||||
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
|
||||
|
|
|
|||
Loading…
Reference in New Issue