From 9ee3e07823af461c60a2fc36825ab8886745796c Mon Sep 17 00:00:00 2001 From: Jakub Jarosz Date: Tue, 3 Sep 2024 15:38:23 +0100 Subject: [PATCH 1/4] Bump Go version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index bc6c0ef81b..56166932c0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/nginxinc/kubernetes-ingress -go 1.22.5 +go 1.23 require ( github.com/aws/aws-sdk-go-v2/config v1.27.31 From d404095d9affc16a84269e67d87160aba543d05e Mon Sep 17 00:00:00 2001 From: Jakub Jarosz Date: Tue, 3 Sep 2024 16:49:03 +0100 Subject: [PATCH 2/4] Setup Go env for code-gen --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e00338c5b6..5dba122813 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,6 +168,12 @@ jobs: - name: Checkout Repository uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Setup Golang Environment + uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + with: + go-version-file: go.mod + if: ${{ needs.checks.outputs.binary_cache_hit != 'true' }} + - name: Check if go.mod and go.sum are up to date run: go mod tidy && git diff --exit-code -- go.mod go.sum From 6d5edc5687778a6905ce90a5108fdba87a2716a6 Mon Sep 17 00:00:00 2001 From: Jakub Jarosz Date: Tue, 3 Sep 2024 16:54:05 +0100 Subject: [PATCH 3/4] Setup Go env for code-gen --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5dba122813..d5538e609b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,6 +162,7 @@ jobs: verify-codegen: name: Verify generated code runs-on: ubuntu-24.04 + needs: checks permissions: contents: read steps: From 383b2db7d3ad0c9d9b6bd5326729c61e3f7295ba Mon Sep 17 00:00:00 2001 From: Jakub Jarosz Date: Wed, 4 Sep 2024 09:18:48 +0100 Subject: [PATCH 4/4] Setup Go env for code-gen --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5538e609b..d8ab687882 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,7 +162,6 @@ jobs: verify-codegen: name: Verify generated code runs-on: ubuntu-24.04 - needs: checks permissions: contents: read steps: @@ -173,7 +172,6 @@ jobs: uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: go.mod - if: ${{ needs.checks.outputs.binary_cache_hit != 'true' }} - name: Check if go.mod and go.sum are up to date run: go mod tidy && git diff --exit-code -- go.mod go.sum