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