check / check (push) Failing after 5s
Fetches .dockerignore, .editorconfig, the CI workflow, .gitignore, .golangci.yml, .prettierignore, .prettierrc and REPO_POLICIES.md byte for byte from sneak/prompts dd4027b, keeping this repo's anchored host-built artifacts in .dockerignore; the new .golangci.yml disables gomodguard. The Dockerfile gets a lint phase on golangci-lint v2.14.0 and a test phase on the Debian Go image; the build stage depends on both and stamps the version as the policy shows. script/test and script/lint build only their phase, and script/cibuild bootstraps and runs script/check first. bin/tools goes: script/bootstrap installs gofumpt and protoc-gen-go into bin/ with go install pinned to a commit, and bin/.gitignore ignores what lands in bin/. Model: opus-5-5
14 lines
275 B
Bash
Executable File
14 lines
275 B
Bash
Executable File
#!/bin/sh
|
|
# script/setup: set up the repo for development after a fresh clone:
|
|
# installs dependencies and the git pre-commit hook.
|
|
set -eu
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
|
|
|
|
main() {
|
|
"$SCRIPT_DIR/bootstrap"
|
|
"$SCRIPT_DIR/install-precommit"
|
|
}
|
|
|
|
main "$@"
|