From 63be9d6fa0ce5c22ab59d7e18125f14018ed607a Mon Sep 17 00:00:00 2001 From: Jason Deal Date: Tue, 12 Mar 2024 13:16:07 -0400 Subject: [PATCH] deps: bump go version to 1.22 (#5653) --- .github/actions/install-deps/action.yaml | 5 ++++- go.mod | 2 +- test/hack/resource/go.mod | 2 +- test/hack/soak/go.mod | 2 +- tools/allocatable-diff/go.mod | 2 +- tools/kompat/go.mod | 2 +- website/go.mod | 2 +- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/actions/install-deps/action.yaml b/.github/actions/install-deps/action.yaml index 56ddc45c7e5d..ef72ac2a3225 100644 --- a/.github/actions/install-deps/action.yaml +++ b/.github/actions/install-deps/action.yaml @@ -8,6 +8,7 @@ runs: using: "composite" steps: - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 + id: setup-go with: go-version-file: go.mod check-latest: true @@ -21,7 +22,9 @@ runs: path: | /usr/local/kubebuilder/bin ~/go/bin - key: ${{ runner.os }}-${{ inputs.k8sVersion }}-toolchain-cache-${{ hashFiles('hack/toolchain.sh') }} + # Added go version to compensate for this issue with govulncheck: https://github.com/golang/go/issues/65590. Could re-evaluate if this is necessary once the + # upstream go issue is corrected and if this is causing too many cache misses. + key: ${{ runner.os }}-${{ inputs.k8sVersion }}-${{ steps.setup-go.outputs.go-version }}-toolchain-cache-${{ hashFiles('hack/toolchain.sh') }} - if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }} shell: bash env: diff --git a/go.mod b/go.mod index a5ee402f63fa..02e7bbb18942 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/aws/karpenter-provider-aws -go 1.21 +go 1.22 require ( github.com/Pallinder/go-randomdata v1.2.0 diff --git a/test/hack/resource/go.mod b/test/hack/resource/go.mod index 18d9b5545550..af0f422f889a 100644 --- a/test/hack/resource/go.mod +++ b/test/hack/resource/go.mod @@ -1,6 +1,6 @@ module github.com/aws/karpenter-provider-aws/test/hack/resource -go 1.21 +go 1.22 require ( github.com/aws/aws-sdk-go-v2 v1.22.1 diff --git a/test/hack/soak/go.mod b/test/hack/soak/go.mod index 2a9582b9fc72..cfe28ff8f3d1 100644 --- a/test/hack/soak/go.mod +++ b/test/hack/soak/go.mod @@ -1,6 +1,6 @@ module github.com/aws/karpenter/test/hack/soak -go 1.21 +go 1.22 require ( github.com/aws/aws-sdk-go v1.47.9 diff --git a/tools/allocatable-diff/go.mod b/tools/allocatable-diff/go.mod index 8112260be942..6260e0ae650f 100644 --- a/tools/allocatable-diff/go.mod +++ b/tools/allocatable-diff/go.mod @@ -1,6 +1,6 @@ module github.com/aws/karpenter-provider-aws/tools/allocatable-diff -go 1.21 +go 1.22 require ( github.com/aws/karpenter-provider-aws v0.33.1-0.20231206223517-f73ccfa65419 diff --git a/tools/kompat/go.mod b/tools/kompat/go.mod index 1296ab885f6c..1887902dc01a 100644 --- a/tools/kompat/go.mod +++ b/tools/kompat/go.mod @@ -1,6 +1,6 @@ module github.com/aws/karpenter-provider-aws/tools/kompat -go 1.20 +go 1.22 require ( github.com/Masterminds/semver/v3 v3.2.1 diff --git a/website/go.mod b/website/go.mod index 6d12c9ed5d1c..a0532639df1c 100644 --- a/website/go.mod +++ b/website/go.mod @@ -1,6 +1,6 @@ module github.com/aws/karpenter-provider-aws/website -go 1.21 +go 1.22 require ( github.com/google/docsy v0.6.0 // indirect