From c189a8cda1368092e5b5a534c9e532e57ee46a5e Mon Sep 17 00:00:00 2001 From: Chris Doherty Date: Tue, 16 Jan 2024 22:02:30 -0600 Subject: [PATCH] Update Go to 1.21 Signed-off-by: Chris Doherty --- .github/workflows/ci.yaml | 6 ++++-- api/v1alpha1/zz_generated.deepcopy.go | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e648b2c..5c81896 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,8 +6,10 @@ on: tags-ignore: - "v*" pull_request: + env: CGO_ENABLED: 0 + GO_VERSION: '1.21' jobs: verify: @@ -19,7 +21,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.20" + go-version: "${{ env.GO_VERSION }}" - name: goimports run: go install golang.org/x/tools/cmd/goimports@latest && goimports -d . | (! grep .) @@ -39,7 +41,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: "1.20" + go-version: "${{ env.GO_VERSION }}" - name: Unit test run: make test diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index b0eaecf..5134ee9 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -23,8 +23,9 @@ package v1alpha1 import ( "k8s.io/api/core/v1" - runtime "k8s.io/apimachinery/pkg/runtime" "net/http" + + runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.