1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00
Files
installer/hack/go-genmock.sh
2025-07-29 23:10:04 -04:00

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