github.com/openshift/installer@v1.4.17/hack/go-genmock.sh (about)

     1  #!/bin/sh
     2  # Example:  ./hack/go-genmock.sh
     3  
     4  if [ "$IS_CONTAINER" != "" ]; then
     5    go install github.com/golang/mock/mockgen
     6    go generate ./pkg/asset/installconfig/... "${@}"
     7    go generate ./pkg/destroy/... "${@}"
     8  else
     9    podman run --rm \
    10      --env IS_CONTAINER=TRUE \
    11      --volume "${PWD}:/go/src/github.com/openshift/installer:z" \
    12      --workdir /go/src/github.com/openshift/installer \
    13      docker.io/golang:1.22 \
    14      ./hack/go-genmock.sh "${@}"
    15  fi