diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 685766b1..f832449b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/.golangci.yml b/.golangci.yml index 4837e925..a13a58d5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 diff --git a/go.mod b/go.mod index 6be5329e..07643343 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/derailed/k9s -go 1.19 +go 1.20 require ( github.com/adrg/xdg v0.4.0