check / check (push) Failing after 1m53s
Drop --no-cache from every docker build in script/: an unchanged tree needs no rerun. Model: opus-5-5
18 lines
487 B
Bash
Executable File
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 "$@"
|