Skip to content

Commit

Permalink
build: use Golang 1.17 when building the bundle container-image
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nixpanic committed Jan 13, 2022
1 parent 9a2ceed commit d18d1bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v2

- name: Install Go 1.17
uses: actions/setup-go@v2
with:
go-version: '1.17'

- name: Generate the bundle contents
run: make bundle

Expand Down

0 comments on commit d18d1bd

Please sign in to comment.