Skip to content

Commit

Permalink
Merge pull request #5078 from nrb/go1.22
Browse files Browse the repository at this point in the history
🌱 Update Go version to 1.22.6
  • Loading branch information
k8s-ci-robot committed Aug 13, 2024
2 parents 2b7d990 + 0108e27 commit 111ea90
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v4.1.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
- name: Set version info
run: |
echo "VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ linters-settings:
allow-leading-space: false
require-specific: true
staticcheck:
go: "1.21"
go: "1.22"
stylecheck:
go: "1.21"
go: "1.22"
depguard:
rules:
main:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ include $(ROOT_DIR_RELATIVE)/common.mk
# https://suva.sh/posts/well-documented-makefiles

# Go
GO_VERSION ?=1.21.5
GO_VERSION ?=1.22.6
GO_CONTAINER_IMAGE ?= golang:$(GO_VERSION)

# Directories.
Expand Down
2 changes: 1 addition & 1 deletion docs/book/src/development/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### Install prerequisites

1. Install [go][go]
- Get the latest patch version for go v1.21.
- Get the latest patch version for go v1.22.
2. Install [jq][jq]
- `brew install jq` on macOS.
- `chocolatey install jq` on Windows.
Expand Down
2 changes: 1 addition & 1 deletion docs/triage-party/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.


FROM golang:1.21.5 as builder
FROM golang:1.22.6 as builder

RUN go get github.com/google/triage-party/cmd/server
RUN go install github.com/google/triage-party/cmd/server@latest
Expand Down
2 changes: 1 addition & 1 deletion docs/triage-party/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module triage-party-deployment

go 1.21
go 1.22

require (
github.com/aws/aws-cdk-go/awscdk v1.110.0-devpreview
Expand Down
2 changes: 1 addition & 1 deletion hack/ensure-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ EOF
local go_version
IFS=" " read -ra go_version <<< "$(go version)"
local minimum_go_version
minimum_go_version=go1.21.5
minimum_go_version=go1.22.5
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
cat <<EOF
Detected go version: ${go_version[*]}.
Expand Down
4 changes: 2 additions & 2 deletions hack/tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module sigs.k8s.io/cluster-api-provider-aws/hack/tools

go 1.21
go 1.22

toolchain go1.21.5
toolchain go1.22.6

// kube-openapi should match the version imported by kustomize.
replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
publish = "docs/book/book"

[build.environment]
GO_VERSION = "1.21.5"
GO_VERSION = "1.22.6"

# Standard Netlify redirects
[[redirects]]
Expand Down

0 comments on commit 111ea90

Please sign in to comment.