Skip to content

Commit 45a0175

Browse files
authored
Merge pull request #322 from ksimon1/go-1.21
feat: update to Go 1.21
2 parents 23f4c6b + a1ee626 commit 45a0175

35 files changed

Lines changed: 168 additions & 34 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v5
1717
with:
18-
go-version: 1.19
18+
go-version-file: 'modules/tests/go.mod'
1919

2020
- name: Get release
2121
id: get_release

automation/generatetasks/build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ENV HOME=/go/src/github.com/kubevirt/kubevirt-tekton-tasks/ \
55
USER_NAME=generatetasks
66

77

8-
RUN curl -L https://go.dev/dl/go1.20.8.linux-amd64.tar.gz | tar -C /usr/local -xzf -
8+
RUN curl -L https://go.dev/dl/go1.21.7.linux-amd64.tar.gz | tar -C /usr/local -xzf -
99
ENV PATH=$PATH:/usr/local/go/bin
1010

1111
WORKDIR ${HOME}

build/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM quay.io/centos/centos:stream9 AS taskBuilder
22

33
RUN dnf install -y tar gzip && dnf clean all
44

5-
ENV GO_VERSION="1.20.8"
5+
ENV GO_VERSION="1.21.7"
66
RUN curl -L https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -C /usr/local -xzf -
77
ENV PATH=$PATH:/usr/local/go/bin
88

build/Containerfile.DiskVirt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM quay.io/centos/centos:stream9 AS taskBuilder
22

33
RUN dnf install -y tar gzip && dnf clean all
44

5-
ENV GO_VERSION="1.20.8"
5+
ENV GO_VERSION="1.21.7"
66

77
RUN curl -L https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz | tar -C /usr/local -xzf -
88
ENV PATH=$PATH:/usr/local/go/bin

modules/copy-template/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kubevirt/kubevirt-tekton-tasks/modules/copy-template
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/alexflint/go-arg v1.4.3

modules/copy-template/vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ github.com/josharian/intern
6464
## explicit; go 1.12
6565
github.com/json-iterator/go
6666
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
67-
## explicit; go 1.20
67+
## explicit; go 1.21
6868
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
6969
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
7070
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/log

modules/create-vm/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kubevirt/kubevirt-tekton-tasks/modules/create-vm
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/alexflint/go-arg v1.3.0
@@ -10,6 +10,7 @@ require (
1010
github.com/onsi/gomega v1.27.6
1111
github.com/openshift/api v0.0.0
1212
github.com/openshift/client-go v0.0.0
13+
github.com/spf13/cobra v1.6.0
1314
go.uber.org/zap v1.19.1
1415
k8s.io/api v0.27.1
1516
k8s.io/apimachinery v0.27.1
@@ -57,7 +58,6 @@ require (
5758
github.com/openshift/custom-resource-status v1.1.2 // indirect
5859
github.com/pborman/uuid v1.2.1 // indirect
5960
github.com/pkg/errors v0.9.1 // indirect
60-
github.com/spf13/cobra v1.6.0 // indirect
6161
github.com/spf13/pflag v1.0.5 // indirect
6262
go.uber.org/atomic v1.7.0 // indirect
6363
go.uber.org/multierr v1.6.0 // indirect

modules/create-vm/go.sum

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/create-vm/vendor/modules.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8
110110
## explicit; go 1.15
111111
github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1
112112
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
113-
## explicit; go 1.20
113+
## explicit; go 1.21
114114
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
115115
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
116116
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/log
@@ -120,7 +120,7 @@ github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zconstants
120120
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zerrors
121121
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zutils
122122
# github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest v0.0.0 => ../sharedtest
123-
## explicit; go 1.20
123+
## explicit; go 1.21
124124
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testconstants
125125
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects
126126
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects/template

modules/disk-virt-customize/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/kubevirt/kubevirt-tekton-tasks/modules/disk-virt-customize
22

3-
go 1.20
3+
go 1.21
44

55
require (
66
github.com/alexflint/go-arg v1.3.0

0 commit comments

Comments
 (0)