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
Abhinav Dahiya 46a5f49709 bump the minimum version for building installer to go 1.14
With Go 1.14 the handling of modules has improved in the sense that all the subcommands `go {test, generate}` now use the vendor when available by default. This makes it easier for us to run generate using the vendored tools like controller-tools etc. as it now uses the checked in vendor.
2020-07-06 12:19:20 -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.14 \
./hack/verify-codegen.sh "${@}"
fi