1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-06 00:48:45 +01:00
Files
installer/hack/verify-codegen.sh
staebler ce3169772c hack: use go 1.17 for verifying codegen
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.
2022-01-21 16:55:13 -05:00

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