Skip to content

Commit

Permalink
feat: build with Go 1.21 (#516)
Browse files Browse the repository at this point in the history
Also bump golangci-lint to v1.54.2.
  • Loading branch information
apricote committed Sep 15, 2023
1 parent db2e6dc commit 7bf7e71
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: "1.21"
- uses: actions/checkout@v4
- name: Run tests
run: |
Expand All @@ -26,13 +26,13 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: "1.21"
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version
version: v1.53.3
version: v1.54.2
# In general linting is quite fast with warm caches, but a fresh run might take some time.
args: --timeout 5m

Expand All @@ -42,7 +42,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: "1.21"
- uses: actions/checkout@v4
- name: Check imports
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_e2e.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: "1.21"
- uses: actions/checkout@master
- uses: hetznercloud/tps-action@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Expand Up @@ -31,7 +31,7 @@ test:lint:

test:unit:
stage: test
image: golang:1.20
image: golang:1.21
variables:
NODE_NAME: "test"
script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -217,7 +217,7 @@ that will be billed.

1x CPX21 (Ubuntu 18.04)

**Requirements: Docker and Go 1.20**
**Requirements: Docker and Go 1.21**

1. Configure your environment correctly

Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,6 +1,6 @@
module github.com/hetznercloud/hcloud-cloud-controller-manager

go 1.20
go 1.21.1

require (
github.com/hetznercloud/hcloud-go/v2 v2.1.1
Expand Down
2 changes: 1 addition & 1 deletion hack/Dockerfile
@@ -1,4 +1,4 @@
FROM golang:1.20 as builder
FROM golang:1.21 as builder
WORKDIR /hccm
ADD go.mod go.sum /hccm/
RUN go mod download
Expand Down

0 comments on commit 7bf7e71

Please sign in to comment.