vet

Mirror of Vet, an AI code review tool
git clone git://git.laack.co/vet.git
Log | Files | Refs | README | LICENSE

vet.sh (413B)


      1 #!/bin/bash
      2 source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/common.sh"
      3 
      4 echo "Ensuring $IMAGE_NAME image is up to date..."
      5 if ! build_output=$("$SCRIPT_DIR/build.sh" 2>&1); then
      6     echo "Image build failed:"
      7     echo "$build_output"
      8     exit 1
      9 fi
     10 
     11 $RUNTIME run --rm \
     12     --mount type=bind,source="$(pwd)",target=/app \
     13     --env-file "$REPO_ROOT/.env" \
     14     "$IMAGE_NAME" /root/.local/bin/uv run vet "$@"