12# CI for src.rest: the CI workflow's lint and test jobs, golangci-lint v1 on Go3# 1.24 (the version .golangci.yml is written for), then go vet and go test ./...4set -eu5# golangci-lint v1 cannot read the export data of newer Go releases, so it is6# built once with Go 1.24.5 into a cache outside the worktree and runs on it.7lint=${XDG_CACHE_HOME:-$HOME/.cache}/puzzletea/golangci-lint-1.64.8-go1.24.58if [ ! -x "$lint/golangci-lint" ]; then9 GOTOOLCHAIN=go1.24.5 GOBIN=$lint go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.810fi11GOTOOLCHAIN=go1.24.5 "$lint/golangci-lint" run ./...12go vet ./...13go test ./...