Skip to content

Commit

Permalink
feat: build with Go 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed May 31, 2024
1 parent 77438db commit 54e1fdd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test:lint:

test:unit:
stage: test
image: golang:1.21
image: golang:1.22
script:
- go test ./... -v

Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand 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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion hack/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 54e1fdd

Please sign in to comment.