| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if ! podman inspect monogon-dev --format ":{{ range .Mounts }}{{.Source }}:{{ end }}" | grep -q ":$(pwd):"; then | |
| echo "Please run this wrapper from the original checkout" | |
| exit 1 | |
| fi | |
| if [ -t 1 ]; then | |
| EXTRA_ARGS=-t | |
| else | |
| EXTRA_ARGS= | |
| fi | |
| exec podman exec -i $EXTRA_ARGS monogon-dev bazel --output_user_root ${HOME}/.cache/bazel-monogon "$@" |