From 54e1fdd201b92f13763b49f845bb40a4e6add289 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 31 May 2024 11:39:43 +0200 Subject: [PATCH] feat: build with Go 1.22 --- .gitlab-ci.yml | 2 +- README.md | 8 +------- go.mod | 2 +- hack/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4729bf6be..15e257bb4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,7 +31,7 @@ test:lint: test:unit: stage: test - image: golang:1.21 + image: golang:1.22 script: - go test ./... -v diff --git a/README.md b/README.md index 6cd603c3f..521e4c372 100644 --- a/README.md +++ b/README.md @@ -210,12 +210,6 @@ go test ./... Check that your go version is up-to-date, tests might fail if it is not. -If in doubt, check which go version is installed in the [ci.yaml](.github/workflows/ci.yaml) GitHub Actions Workflow: - -```yaml -go-version: "1.21" -``` - ## E2E Tests The Hetzner Cloud cloud controller manager was tested against all @@ -232,7 +226,7 @@ that will be billed. 1x CPX21 (Ubuntu 18.04) -**Requirements: Docker and Go 1.21** +**Requirements: Docker and Go 1.22** 1. Configure your environment correctly diff --git a/go.mod b/go.mod index 8a8ae80d7..fbc82b3a7 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hetznercloud/hcloud-cloud-controller-manager -go 1.21 +go 1.22 require ( github.com/hetznercloud/hcloud-go/v2 v2.6.0 diff --git a/hack/Dockerfile b/hack/Dockerfile index b12a77321..226074ece 100644 --- a/hack/Dockerfile +++ b/hack/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21 as builder +FROM golang:1.22 as builder WORKDIR /hccm ADD go.mod go.sum /hccm/ RUN go mod download