Skip to content

Commit 3567c89

Browse files
committed
bump Go to 1.22
1 parent 2bc9024 commit 3567c89

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

.github/workflows/cover.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2222
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2323
with:
24-
go-version: '1.21'
24+
go-version: '1.22'
2525
- run: "PATH=/usr/local/go/bin:$PATH make test-cover"
2626
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
2727
env:

.github/workflows/dependabot-code-gen.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Go 1.x
2727
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2828
with:
29-
go-version: '1.21'
29+
go-version: '1.22'
3030
id: go
3131
- name: Check out code into the Go module directory
3232
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

.github/workflows/scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
- name: Setup go
2323
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
2424
with:
25-
go-version: 1.21
25+
go-version: 1.22
2626
- name: Run verify container script
2727
run: make verify-container-images

.golangci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ linters-settings:
123123
arguments:
124124
- disableStutteringCheck
125125
staticcheck:
126-
go: "1.21"
126+
go: "1.22"
127127
stylecheck:
128-
go: "1.21"
128+
go: "1.22"
129129
unused:
130-
go: "1.21"
130+
go: "1.22"
131131

132132
issues:
133133
exclude-rules:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ARG ARCH
1919

2020
# Build the manager binary
21-
FROM golang:1.21 as builder
21+
FROM golang:1.22 as builder
2222
WORKDIR /workspace
2323

2424
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ delete-workload-cluster: $(KUBECTL) ## Deletes the example workload Kubernetes c
393393
.PHONY: docker-pull-prerequisites
394394
docker-pull-prerequisites: ## Pull prerequisites for building controller-manager.
395395
docker pull docker/dockerfile:1.4
396-
docker pull docker.io/library/golang:1.21
396+
docker pull docker.io/library/golang:1.22
397397
docker pull gcr.io/distroless/static:latest
398398

399399
.PHONY: docker-build
@@ -647,7 +647,7 @@ release-binary: $(RELEASE_DIR) ## Compile and build release binaries.
647647
-e GOARCH=$(GOARCH) \
648648
-v "$$(pwd):/workspace" \
649649
-w /workspace \
650-
golang:1.21 \
650+
golang:1.22 \
651651
go build -a -ldflags '$(LDFLAGS) -extldflags "-static"' \
652652
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY))-$(GOOS)-$(GOARCH) $(RELEASE_BINARY)
653653

Tiltfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def validate_auth():
126126

127127
tilt_helper_dockerfile_header = """
128128
# Tilt image
129-
FROM golang:1.21 as tilt-helper
129+
FROM golang:1.22 as tilt-helper
130130
# Support live reloading with Tilt
131131
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
132132
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \

docs/book/src/developers/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
### Base requirements
4747

4848
1. Install [go][go]
49-
- Get the latest patch version for go v1.21.
49+
- Get the latest patch version for go v1.22.
5050
2. Install [jq][jq]
5151
- `brew install jq` on macOS.
5252
- `sudo apt install jq` on Windows + WSL2

hack/ensure-go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ EOF
3131
local go_version
3232
IFS=" " read -ra go_version <<< "$(go version)"
3333
local minimum_go_version
34-
minimum_go_version=go1.21.9
34+
minimum_go_version=go1.22.5
3535
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
3636
cat <<EOF
3737
Detected go version: ${go_version[*]}.

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
publish = "docs/book/bookout"
55

66
[build.environment]
7-
GO_VERSION = "1.21"
7+
GO_VERSION = "1.22.x"
88

99
# Standard Netlify redirects
1010
[[redirects]]

0 commit comments

Comments
 (0)