mirror of
https://github.com/openshift/installer.git
synced 2026-02-06 00:48:45 +01:00
The hack/verify-codegen.sh script was using an image that included go 1.16. However, the updated k8s.io/json module calls the `(reflect.StructField) IsExported` function, which is new in go 1.17. Consequently, the script needs to be updated to use an image that include go 1.17 rather than 1.16.
16 lines
374 B
Bash
Executable File
16 lines
374 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$IS_CONTAINER" != "" ]; then
|
|
set -xe
|
|
go generate ./pkg/types/installconfig.go
|
|
set +ex
|
|
git diff --exit-code
|
|
else
|
|
podman run --rm \
|
|
--env IS_CONTAINER=TRUE \
|
|
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
|
|
--workdir /go/src/github.com/openshift/installer \
|
|
docker.io/golang:1.17 \
|
|
./hack/verify-codegen.sh "${@}"
|
|
fi
|