Skip to content

Commit d49d0a5

Browse files
committed
build: use Golang 1.17 when building the bundle container-image
When the GitHub Worflow to push the bundle container-image runs, it uses the standard version of Go that is installed on the Ubuntu worker. This version does not work while building `kustomize`: go build -o /home/runner/work/kubernetes-csi-addons/kubernetes-csi-addons/bin/kustomize ./vendor/sigs.k8s.io/kustomize/kustomize/v4 # sigs.k8s.io/kustomize/kyaml/filesys vendor/sigs.k8s.io/kustomize/kyaml/filesys/fsondisk.go:115:21: undefined: os.ReadDir The project requires Go 1.17, so we should use that while building the bundle container-image as well. Signed-off-by: Niels de Vos <ndevos@redhat.com>
1 parent a6242f0 commit d49d0a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-push.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
- name: Check out the repo
1616
uses: actions/checkout@v2
1717

18+
- name: Install Go 1.17
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: '1.17'
22+
1823
- name: Generate the bundle contents
1924
run: make bundle
2025

0 commit comments

Comments
 (0)