plain text 25 lines
#!/bin/sh
# Workflow: __NAME__
#
# Runs with the repository root as the working directory. Available
# environment: EECO_REPO_ROOT, EECO_WORKSPACE, EECO_PROFILE, EECO_AI.
#
# Contract — exit with one of:
# 0 clean
# 1 finding / failure
# 2 blocked (a required tool is missing)
# 3 AI pass deferred (EECO_AI=false and an AI pass was wanted)
#
# Write nothing outside "$EECO_WORKSPACE". Use the queue for decisions.
set -eu
if ! command -v go >/dev/null 2>&1; then
echo "__NAME__: blocked — go not on PATH" >&2
exit 2
fi
# Go-profile default: a vet pass over every package. Replace with the
# real check this workflow is meant to perform.
go vet ./...