1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 15:47:14 +01:00
Files
installer/hack/verify-codegen.sh
2020-05-08 09:26:11 -07:00

17 lines
430 B
Bash
Executable File

#!/bin/sh
if [ "$IS_CONTAINER" != "" ]; then
set -x
go generate ./pkg/types/installconfig.go
go generate ./pkg/rhcos/ami.go
set +x
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/openshift/origin-release:golang-1.13 \
./hack/verify-codegen.sh "${@}"
fi