build: bootstrap Go toolchain and generated APIs
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
repo_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
actual=$(mktemp)
|
||||
trap 'rm -f "$actual"' EXIT HUP INT TERM
|
||||
|
||||
cd "$repo_root"
|
||||
buf lint --error-format=text >"$actual" 2>&1 || true
|
||||
LC_ALL=C sort -o "$actual" "$actual"
|
||||
|
||||
if ! diff -u config/buf-lint-baseline.txt "$actual"; then
|
||||
echo "Buf lint findings changed; only the reviewed first-draft findings are accepted." >&2
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user