Skip to content

Commit 48df92f

Browse files
committed
chore(deps): bump to go 1.22 as per upstream capi
Signed-off-by: Chris Privitere <23177737+cprivitere@users.noreply.github.com>
1 parent 758939a commit 48df92f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
run:
22
timeout: 10m
3-
go: "1.21"
3+
go: "1.22"
44
build-tags:
55
- tools
66
- e2e

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# Build the manager binary
18-
ARG GOVER=1.21.9
18+
ARG GOVER=1.22.5
1919
FROM golang:${GOVER} as builder
2020

2121
WORKDIR /workspace

hack/ensure-go.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set -o pipefail
2222
verify_go_version() {
2323
if [[ -z "$(command -v go)" ]]; then
2424
if [[ "${INSTALL_GO:-"true"}" == "true" ]]; then
25-
curl -sSL https://golang.org/dl/go${GO_VERSION:-"1.21"}.linux-amd64.tar.gz | tar -C /usr/local -xzf -
25+
curl -sSL https://golang.org/dl/go${GO_VERSION:-"1.22"}.linux-amd64.tar.gz | tar -C /usr/local -xzf -
2626
export PATH=/usr/local/go/bin:$PATH
2727
export PATH=$(go env GOPATH)/bin:$PATH
2828
else
@@ -37,7 +37,7 @@ EOF
3737
local go_version
3838
IFS=" " read -ra go_version <<< "$(go version)"
3939
local minimum_go_version
40-
minimum_go_version=go1.21
40+
minimum_go_version=go1.22
4141
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
4242
cat <<EOF
4343
Detected go version: ${go_version[*]}.

0 commit comments

Comments
 (0)