Files
smallwebwaf/script/tidy
T
clawbot 988f117ef3
check / check (push) Failing after 1m53s
Check builds use Docker's normal cache
Drop --no-cache from every docker build in script/: an unchanged tree
needs no rerun.

Model: opus-5-5
2026-11-16 21:48:28 +00:00

18 lines
487 B
Bash
Executable File

#!/bin/sh
# script/tidy: write go.mod and go.sum as `go mod tidy` writes them, which
# the test phase of the Dockerfile checks. This builds the Dockerfile's
# tidy-files stage, which holds the two files alone, and --output writes
# them into the working tree. The build makes no image, so it has no tag.
set -eu
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
main() {
cd "$ROOT"
docker build \
--target tidy-files \
--output "type=local,dest=$ROOT" .
}
main "$@"