Skip to content

Commit 2feec31

Browse files
committed
Build with Go 1.21
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 71806b5 commit 2feec31

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

.github/workflows/cifuzz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup Go
2222
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2323
with:
24-
go-version: 1.20.x
24+
go-version: 1.21.x
2525
cache-dependency-path: |
2626
**/go.sum
2727
**/go.mod

.github/workflows/e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Go
2525
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2626
with:
27-
go-version: 1.20.x
27+
go-version: 1.21.x
2828
cache-dependency-path: |
2929
**/go.sum
3030
**/go.mod
@@ -59,7 +59,7 @@ jobs:
5959
- name: Setup Go
6060
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
6161
with:
62-
go-version: 1.20.x
62+
go-version: 1.21.x
6363
cache-dependency-path: |
6464
**/go.sum
6565
**/go.mod

.github/workflows/scan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Go
3636
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
3737
with:
38-
go-version: 1.20.x
38+
go-version: 1.21.x
3939
cache-dependency-path: |
4040
**/go.sum
4141
**/go.mod

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.21.x
2929
cache-dependency-path: |
3030
**/go.sum
3131
**/go.mod
@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup Go
4747
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
4848
with:
49-
go-version: 1.20.x
49+
go-version: 1.21.x
5050
cache-dependency-path: |
5151
**/go.sum
5252
**/go.mod

.github/workflows/verify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Go
2626
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2727
with:
28-
go-version: 1.20.x
28+
go-version: 1.21.x
2929
cache-dependency-path: |
3030
**/go.sum
3131
**/go.mod

DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ There are a number of dependencies required to be able to run the controller and
1515

1616
In addition to the above, the following dependencies are also used by some of the `make` targets:
1717

18-
- `controller-gen` (v0.7.0)
18+
- `controller-gen` (v0.12.0)
1919
- `gen-crd-api-reference-docs` (v0.3.0)
2020
- `setup-envtest` (latest)
2121

@@ -24,7 +24,7 @@ If any of the above dependencies are not present on your system, the first invoc
2424
## How to run the test suite
2525

2626
Prerequisites:
27-
* Go >= 1.18
27+
* Go >= 1.21
2828

2929
You can run the test suite by simply doing
3030

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG BASE_VARIANT=alpine
2-
ARG GO_VERSION=1.20
2+
ARG GO_VERSION=1.21
33
ARG XX_VERSION=1.2.1
44

55
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ api-docs: gen-crd-api-reference-docs ## Generate API reference documentation
119119

120120
tidy: ## Run go mod tidy
121121
cd api; rm -f go.sum; go mod tidy -compat=1.20
122-
rm -f go.sum; go mod tidy -compat=1.20
122+
rm -f go.sum; go mod tidy -compat=1.21
123123

124124
fmt: ## Run go fmt against code
125125
go fmt ./...

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/fluxcd/source-controller
22

3-
go 1.20
3+
go 1.21
44

55
replace github.com/fluxcd/source-controller/api => ./api
66

tests/fuzz/Dockerfile.builder

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
FROM gcr.io/oss-fuzz-base/base-builder-go
22

3-
RUN wget https://go.dev/dl/go1.20.5.linux-amd64.tar.gz \
3+
RUN wget https://go.dev/dl/go1.21.3.linux-amd64.tar.gz \
44
&& mkdir temp-go \
55
&& rm -rf /root/.go/* \
6-
&& tar -C temp-go/ -xzf go1.20.5.linux-amd64.tar.gz \
6+
&& tar -C temp-go/ -xzf go1.21.3.linux-amd64.tar.gz \
77
&& mv temp-go/go/* /root/.go/
88

99
ENV SRC=$GOPATH/src/github.com/fluxcd/source-controller

0 commit comments

Comments
 (0)