WIP: re-vendor canonical files and gate phases
check / check (push) Canceled after 0s

Model: opus-5-5
This commit is contained in:
2026-10-14 12:35:07 +00:00
parent 00e51d284f
commit 7de2066bf2
13 changed files with 668 additions and 248 deletions
+14 -4
View File
@@ -1,13 +1,23 @@
#!/bin/sh
# script/lint: run the linters.
# script/lint: run the linter. Linting is a phase of the Dockerfile and
# this builds that phase alone; the linter is never installed or run on
# a developer host, where a shared result cache and a host-global lock
# make its answer untrustworthy.
#
# The phase is not the last stage in the file, so it is built only when
# --target names it. --no-cache because a cached lint layer is a lint
# that did not run. The tag makes each build replace the previous image
# instead of leaving a dangling one behind.
set -eu
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
ROOT="$(cd "$SCRIPT_DIR/.." && pwd -P)"
main() {
cd "$ROOT"
go vet ./...
golangci-lint run
docker build --no-cache \
--target lint \
-t "$("$SCRIPT_DIR/projectname")-lint" .
}
main "$@"