check / check (push) Failing after 5s
REPO_POLICIES.md, .golangci.yml, the CI workflow and the scripts the policy keeps identical across repositories are copies of the files at that commit. .gitignore, .editorconfig and the new .dockerignore are the canonical files followed by this repository's own entries. The lint stage moves to the golangci-lint image the policy pins, in the same commit as .golangci.yml. The format check leaves the lint stage and runs on the host from script/check, which script/cibuild now runs after script/bootstrap. The last Dockerfile stage runs script/bootstrap. script/fmt runs goimports with go run at a pinned commit. Model: opus-5-5
18 lines
442 B
Bash
Executable File
18 lines
442 B
Bash
Executable File
#!/bin/sh
|
|
# script/fmt: format all files (writes). goimports runs with `go run` at
|
|
# a pinned commit, so nothing installs it and every machine formats with
|
|
# the same version.
|
|
set -eu
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|
|
|
# goimports from golang.org/x/tools v0.51.0, 2026-10-02
|
|
GOIMPORTS="golang.org/x/tools/cmd/goimports@ea2f152dc35325e4b9b639583972375972350a84"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
go run "$GOIMPORTS" -l -w .
|
|
}
|
|
|
|
main "$@"
|