#!/usr/bin/env bash
# Run from a current-main checkout with dependencies installed and the scenario in scripts/scenarios.
set -eu
proof_dir=$(mktemp -d)
printf 'ordinary file\n' > "$proof_dir/plainfile"
mkdir "$proof_dir/emptydir"
cp ./restrict-server-path.cjs "$proof_dir/restrict-server-path.cjs"
T3CODE_DEV_SEED=0 T3_SCENARIO_INHERIT_ENV=NODE_OPTIONS,T3CODE_DEV_SEED \
NODE_OPTIONS="--require=$proof_dir/restrict-server-path.cjs" \
vp run scenarios:prove scripts/scenarios/path-regular-file-missing-git.e2e.ts \
  --base 1195af4b0d85dda0af7cdfcae1264085ce5af14a \
  --head 141a4635a12cb5536b74d921c1af058c081a316a
