1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
Files
installer/hack/verify-codegen.sh

16 lines
374 B
Bash
Raw Permalink Normal View History

2020-05-08 09:24:19 -07:00
#!/bin/sh
if [ "$IS_CONTAINER" != "" ]; then
set -xe
2020-05-08 09:24:19 -07:00
go generate ./pkg/types/installconfig.go
set +ex
2020-05-08 09:24:19 -07:00
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.24 \
2020-05-08 09:24:19 -07:00
./hack/verify-codegen.sh "${@}"
fi