Unify all go version to 1.20 (#2069)

mine
Kohei Ota (inductor) 2023-05-07 23:12:53 +09:00 committed by GitHub
parent c3a93d8db2
commit 005b10ea9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/derailed/k9s
go 1.19
go 1.20
require (
github.com/adrg/xdg v0.4.0