Skip to content

Commit

Permalink
Merge pull request #236 from ksimon1/bump-golang
Browse files Browse the repository at this point in the history
feat: Update golang to 1.20
  • Loading branch information
ksimon1 authored Mar 27, 2023
2 parents 396d077 + c221d5d commit eb1c772
Show file tree
Hide file tree
Showing 32 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion modules/copy-template/build/copy-template/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV TASK_NAME=copy-template \
GO111MODULE=on
WORKDIR /src/${TASK_NAME}

RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -

ENV PATH=$PATH:/usr/local/go/bin

Expand Down
2 changes: 1 addition & 1 deletion modules/copy-template/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/copy-template

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.4.3
Expand Down
2 changes: 1 addition & 1 deletion modules/copy-template/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ github.com/google/uuid
## explicit; go 1.12
github.com/json-iterator/go
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/log
Expand Down
2 changes: 1 addition & 1 deletion modules/create-vm/build/create-vm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV TASK_NAME=create-vm \
GOFLAGS="-mod=vendor" \
GO111MODULE=on
WORKDIR /src/${TASK_NAME}
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /${TASK_NAME} cmd/${TASK_NAME}/main.go
Expand Down
2 changes: 1 addition & 1 deletion modules/create-vm/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/create-vm

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.3.0
Expand Down
4 changes: 2 additions & 2 deletions modules/create-vm/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8
## explicit; go 1.15
github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/log
Expand All @@ -106,7 +106,7 @@ github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zconstants
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zerrors
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zutils
# github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest v0.0.0 => ../sharedtest
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testconstants
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects/template
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV TASK_NAME=disk-virt-customize \
GOFLAGS="-mod=vendor" \
GO111MODULE=on
WORKDIR /src/${TASK_NAME}
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /${TASK_NAME} cmd/${TASK_NAME}/main.go
Expand Down
2 changes: 1 addition & 1 deletion modules/disk-virt-customize/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/disk-virt-customize

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.3.0
Expand Down
2 changes: 1 addition & 1 deletion modules/disk-virt-customize/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ github.com/google/uuid
## explicit; go 1.12
github.com/json-iterator/go
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV TASK_NAME=disk-virt-sysprep \
GOFLAGS="-mod=vendor" \
GO111MODULE=on
WORKDIR /src/${TASK_NAME}
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /${TASK_NAME} cmd/${TASK_NAME}/main.go
Expand Down
2 changes: 1 addition & 1 deletion modules/disk-virt-sysprep/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/disk-virt-sysprep

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.3.0
Expand Down
2 changes: 1 addition & 1 deletion modules/disk-virt-sysprep/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ github.com/google/uuid
## explicit; go 1.12
github.com/json-iterator/go
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/options
Expand Down
2 changes: 1 addition & 1 deletion modules/execute-in-vm/build/execute-in-vm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV TASK_NAME=execute-in-vm \
GOFLAGS="-mod=vendor" \
GO111MODULE=on
WORKDIR /src/${TASK_NAME}
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /${TASK_NAME} cmd/${TASK_NAME}/main.go
Expand Down
2 changes: 1 addition & 1 deletion modules/execute-in-vm/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/execute-in-vm

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.3.0
Expand Down
4 changes: 2 additions & 2 deletions modules/execute-in-vm/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8
## explicit; go 1.15
github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env/fileoptions
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
Expand All @@ -109,7 +109,7 @@ github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zconstants/connecti
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zerrors
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zutils
# github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest v0.0.0 => ../sharedtest
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testconstants
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects
# github.com/mailru/easyjson v0.7.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV TASK_NAME=generate-ssh-keys \
GOFLAGS="-mod=vendor" \
GO111MODULE=on
WORKDIR /src/${TASK_NAME}
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /${TASK_NAME} cmd/${TASK_NAME}/main.go
Expand Down
2 changes: 1 addition & 1 deletion modules/generate-ssh-keys/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/generate-ssh-keys

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.3.0
Expand Down
2 changes: 1 addition & 1 deletion modules/generate-ssh-keys/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ github.com/josharian/intern
## explicit; go 1.12
github.com/json-iterator/go
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RUN microdnf install -y tar gzip && microdnf clean all
ENV TASK_NAME=modify-data-object \
GOFLAGS="-mod=vendor"
WORKDIR /src/${TASK_NAME}
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /${TASK_NAME} cmd/${TASK_NAME}/main.go
Expand Down
2 changes: 1 addition & 1 deletion modules/modify-data-object/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/modify-data-object

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.4.3
Expand Down
4 changes: 2 additions & 2 deletions modules/modify-data-object/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ github.com/josharian/intern
## explicit; go 1.12
github.com/json-iterator/go
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/log
Expand All @@ -89,7 +89,7 @@ github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zconstants
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zerrors
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zutils
# github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest v0.0.0 => ../sharedtest
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects/datasource
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects/datavolume
# github.com/mailru/easyjson v0.7.7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV TASK_NAME=modify-vm-template \
GOFLAGS="-mod=vendor" \
GO111MODULE=on
WORKDIR /src/${TASK_NAME}
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /${TASK_NAME} cmd/${TASK_NAME}/main.go
Expand Down
2 changes: 1 addition & 1 deletion modules/modify-vm-template/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/modify-vm-template

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.4.2
Expand Down
2 changes: 1 addition & 1 deletion modules/modify-vm-template/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ github.com/google/uuid
## explicit; go 1.12
github.com/json-iterator/go
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/log
Expand Down
2 changes: 1 addition & 1 deletion modules/shared/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/shared

go 1.19
go 1.20

require (
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
Expand Down
2 changes: 1 addition & 1 deletion modules/shared/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ github.com/google/uuid
## explicit; go 1.12
github.com/json-iterator/go
# github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest v0.0.0 => ./../sharedtest
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects/template
# github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
## explicit
Expand Down
2 changes: 1 addition & 1 deletion modules/sharedtest/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest

go 1.19
go 1.20

require (
github.com/onsi/ginkgo/v2 v2.1.6
Expand Down
2 changes: 1 addition & 1 deletion modules/tests/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/tests

go 1.19
go 1.20

require (
github.com/kubevirt/kubevirt-tekton-tasks/modules/copy-template v0.0.0
Expand Down
6 changes: 3 additions & 3 deletions modules/tests/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,19 +218,19 @@ github.com/klauspost/compress/zstd/internal/xxhash
## explicit; go 1.15
github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1
# github.com/kubevirt/kubevirt-tekton-tasks/modules/copy-template v0.0.0 => ../copy-template
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/copy-template/pkg/templates
github.com/kubevirt/kubevirt-tekton-tasks/modules/copy-template/pkg/utils/parse
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/log
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/output
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zconstants
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zerrors
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zutils
# github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest v0.0.0 => ../sharedtest
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testconstants
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects/datasource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV TASK_NAME=wait-for-vmi-status \
GOFLAGS="-mod=vendor" \
GO111MODULE=on
WORKDIR /src/${TASK_NAME}
RUN curl -L https://go.dev/dl/go1.19.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
RUN curl -L https://go.dev/dl/go1.20.2.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH=$PATH:/usr/local/go/bin
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /${TASK_NAME} cmd/${TASK_NAME}/main.go
Expand Down
2 changes: 1 addition & 1 deletion modules/wait-for-vmi-status/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/kubevirt/kubevirt-tekton-tasks/modules/wait-for-vmi-status

go 1.19
go 1.20

require (
github.com/alexflint/go-arg v1.3.0
Expand Down
4 changes: 2 additions & 2 deletions modules/wait-for-vmi-status/vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8
## explicit; go 1.15
github.com/kubernetes-csi/external-snapshotter/client/v4/apis/volumesnapshot/v1
# github.com/kubevirt/kubevirt-tekton-tasks/modules/shared v0.0.0 => ../shared
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/env
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/exit
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zconstants
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zerrors
github.com/kubevirt/kubevirt-tekton-tasks/modules/shared/pkg/zutils
# github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest v0.0.0 => ../sharedtest
## explicit; go 1.19
## explicit; go 1.20
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testconstants
github.com/kubevirt/kubevirt-tekton-tasks/modules/sharedtest/testobjects
# github.com/mailru/easyjson v0.7.7
Expand Down

0 comments on commit eb1c772

Please sign in to comment.