mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
16 lines
445 B
Bash
Executable File
16 lines
445 B
Bash
Executable File
#!/bin/sh
|
|
# Example: ./hack/go-genmock.sh
|
|
|
|
if [ "$IS_CONTAINER" != "" ]; then
|
|
go install go.uber.org/mock/mockgen
|
|
go generate ./pkg/asset/installconfig/... "${@}"
|
|
go generate ./pkg/destroy/... "${@}"
|
|
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 \
|
|
./hack/go-genmock.sh "${@}"
|
|
fi
|