Bump golang to 1.20

This commit is contained in:
Ole Markus With 2023-04-16 07:48:26 +02:00
parent 5ee0307f94
commit a57f754c63
7 changed files with 12 additions and 12 deletions

View File

@ -19,7 +19,7 @@ jobs:
- name: Set up go - name: Set up go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.7' go-version: '1.20.3'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
with: with:
@ -36,7 +36,7 @@ jobs:
- name: Set up go - name: Set up go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.7' go-version: '1.20.3'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
with: with:
@ -53,7 +53,7 @@ jobs:
- name: Set up go - name: Set up go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.7' go-version: '1.20.3'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
with: with:
@ -70,7 +70,7 @@ jobs:
- name: Set up go - name: Set up go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.7' go-version: '1.20.3'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
with: with:

View File

@ -19,7 +19,7 @@ jobs:
steps: steps:
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 - uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with: with:
go-version: '1.19.7' go-version: '1.20.3'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- name: Update Dependencies - name: Update Dependencies
id: update_deps id: update_deps

View File

@ -22,7 +22,7 @@ linters:
linters-settings: # please keep this alphabetized linters-settings: # please keep this alphabetized
staticcheck: staticcheck:
go: "1.19" go: "1.20"
checks: [ checks: [
"all", "all",
"-ST1000", # Incorrect or missing package comment "-ST1000", # Incorrect or missing package comment

View File

@ -5,7 +5,7 @@ options:
machineType: 'N1_HIGHCPU_8' machineType: 'N1_HIGHCPU_8'
steps: steps:
# Push the images # Push the images
- name: 'docker.io/library/golang:1.19.7-bullseye' - name: 'docker.io/library/golang:1.20.3-bullseye'
id: images id: images
entrypoint: make entrypoint: make
env: env:
@ -20,7 +20,7 @@ steps:
- dns-controller-push - dns-controller-push
- kube-apiserver-healthcheck-push - kube-apiserver-healthcheck-push
# Push the artifacts # Push the artifacts
- name: 'docker.io/library/golang:1.19.7-bullseye' - name: 'docker.io/library/golang:1.20.3-bullseye'
id: artifacts id: artifacts
entrypoint: make entrypoint: make
env: env:
@ -35,7 +35,7 @@ steps:
args: args:
- gcs-upload-and-tag - gcs-upload-and-tag
# Build cloudbuild artifacts (for attestation) # Build cloudbuild artifacts (for attestation)
- name: 'docker.io/library/golang:1.19.7-bullseye' - name: 'docker.io/library/golang:1.20.3-bullseye'
id: cloudbuild-artifacts id: cloudbuild-artifacts
entrypoint: make entrypoint: make
env: env:

2
go.mod
View File

@ -1,6 +1,6 @@
module k8s.io/kops module k8s.io/kops
go 1.19 go 1.20
replace ( replace (
github.com/docker/cli => github.com/docker/cli v20.10.21+incompatible github.com/docker/cli => github.com/docker/cli v20.10.21+incompatible

View File

@ -1,6 +1,6 @@
module k8s.io/kops/hack module k8s.io/kops/hack
go 1.19 go 1.20
require ( require (
github.com/client9/misspell v0.3.4 github.com/client9/misspell v0.3.4

View File

@ -1,6 +1,6 @@
module k8s.io/kops/tests/e2e module k8s.io/kops/tests/e2e
go 1.19 go 1.20
replace k8s.io/kops => ../../. replace k8s.io/kops => ../../.