diff --git a/.github/workflows/pre_commit_go.yaml b/.github/workflows/pre_commit_go.yaml index 7f2ddf40a..d07a5ab6e 100644 --- a/.github/workflows/pre_commit_go.yaml +++ b/.github/workflows/pre_commit_go.yaml @@ -13,13 +13,13 @@ jobs: - uses: actions/setup-python@v4 - uses: actions/setup-go@v3 with: - go-version: "1.18.4" + go-version: "1.19" - name: Install goimports run: | go install golang.org/x/tools/cmd/goimports@latest - name: Install golangci-lint env: - GOLANGCI_LINT_VERSION: "v1.47.2" + GOLANGCI_LINT_VERSION: "v1.54.2" run: | curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ sudo sh -s -- -b $GOPATH/bin ${GOLANGCI_LINT_VERSION} diff --git a/service/controller/chart/resource/release/update_test.go b/service/controller/chart/resource/release/update_test.go index 4096ae2d4..6bede25d5 100644 --- a/service/controller/chart/resource/release/update_test.go +++ b/service/controller/chart/resource/release/update_test.go @@ -183,7 +183,7 @@ func Test_Resource_Release_newUpdateChange(t *testing.T) { for i, tc := range testCases { t.Run(strconv.Itoa(i), func(t *testing.T) { - result, err := newResource.newUpdateChange(ctx, &tc.obj, tc.currentState, tc.desiredState) + result, err := newResource.newUpdateChange(ctx, &testCases[i].obj, tc.currentState, tc.desiredState) if err != nil { t.Fatal("expected", nil, "got", err) }