build: update to Go 1.20

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals 2023-03-01 14:07:19 +01:00
parent 78117fccc1
commit f1a270aefb
No known key found for this signature in database
GPG Key ID: 979F380FC2341744
5 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.20.x
- name: Restore Go cache
uses: actions/cache@v3
with:

View File

@ -43,7 +43,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.20.x
- name: Setup Kubernetes
uses: helm/kind-action@v1.5.0
with:

View File

@ -33,7 +33,7 @@ jobs:
- name: Setup Go
uses: actions/setup-gov3
with:
go-version: 1.19.x
go-version: 1.20.x
- name: Download modules
run: |
make tidy
@ -58,7 +58,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.20.x
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:

View File

@ -1,4 +1,4 @@
ARG GO_VERSION=1.19
ARG GO_VERSION=1.20
ARG XX_VERSION=1.1.0
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx

View File

@ -85,8 +85,8 @@ api-docs: gen-crd-api-reference-docs
# Run go mod tidy
tidy:
cd api; rm -f go.sum; go mod tidy -compat=1.19
rm -f go.sum; go mod tidy -compat=1.19
cd api; rm -f go.sum; go mod tidy -compat=1.20
rm -f go.sum; go mod tidy -compat=1.20
# Run go fmt against code
fmt: