Skip to content

Commit

Permalink
refactor(core): edit go version in kubevirt and workspace file (#407)
Browse files Browse the repository at this point in the history
Fix go version in file WORKSPACE and root go.mod

Signed-off-by: Nikita korolev <[email protected]>
  • Loading branch information
universal-itengineer authored Sep 30, 2024
1 parent 5445dc1 commit f1e4893
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions images/virt-artifact/werf.inc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Source https://github.com/kubevirt/kubevirt/blob/v1.3.1/hack/dockerized#L15
{{- $builderImage := "quay.io/kubevirt/builder:2408161422-1f8c489011" }}
{{- $builderImage := "quay.io/kubevirt/builder:2408151859-735f25dde" }}
{{- $version := "1.3.1" }}
{{- $goVersion := "1.22.7" }}

Expand All @@ -15,7 +15,8 @@ shell:
rm -rf /gimme && \
mkdir -p /gimme && curl -sL \
https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | \
HOME=/gimme bash >> /etc/profile.d/gimme.sh
HOME=/gimme bash > /etc/profile.d/gimme.sh
- export PATH=`echo $PATH | tr ":" "\n" | grep -v "go" | tr "\n" ":"`
- source /etc/profile.d/gimme.sh && go version
docker:
ENV:
Expand All @@ -40,6 +41,11 @@ shell:
setup:
- git clone --depth 1 --branch v{{ $version }} https://github.com/kubevirt/kubevirt.git /kubevirt
- cd /kubevirt
- sed -i -e 's/go_version = ".*"/go_version = "{{ $goVersion }}"/' WORKSPACE
- |
source /etc/profile.d/gimme.sh
go mod edit -go={{ $goVersion }}
go mod tidy
- |
for p in /patches/*.patch ; do
echo -n "Apply ${p} ... "
Expand Down

0 comments on commit f1e4893

Please sign in to comment.