check / check (push) Waiting to run
The vendored files are copies from sneak/prompts dd4027b, with this repository's own entries after the canonical content. golangci-lint is v2.14.0. Lint and test are phases of the Dockerfile, which script/lint and script/test build with --no-cache; Dockerfile.lint and script/lint-darwin are gone, and the lint phase also checks the macOS build. The tests run on the Debian Go image with cgo and the race detector. script/cibuild bootstraps, runs script/check and builds the image; CHECK_EPOCH and the memlock ulimit are gone. Go's build cache stays in a cache mount, out of the test image's layer. The rules in CLAUDE.md that AGENTS.md lacked are now in AGENTS.md. Model: opus-5-5
51 lines
762 B
Makefile
51 lines
762 B
Makefile
export CGO_ENABLED=1
|
|
|
|
.PHONY: default bootstrap setup build test lint fmt fmt-check check docker \
|
|
docker-run clean install hooks
|
|
|
|
default: check
|
|
|
|
bootstrap:
|
|
@script/bootstrap
|
|
|
|
setup:
|
|
@script/setup
|
|
|
|
# Build ./secret; `make build VERSION=x` stamps x instead of `git describe`
|
|
build:
|
|
@script/build
|
|
|
|
test:
|
|
@script/test
|
|
|
|
fmt:
|
|
@script/fmt
|
|
|
|
# Lints the Linux build, then type-checks and lints the macOS build
|
|
lint:
|
|
@script/lint
|
|
|
|
check:
|
|
@script/check
|
|
|
|
# Build Docker container
|
|
docker:
|
|
@script/docker
|
|
|
|
# Run Docker container interactively
|
|
docker-run:
|
|
docker run --rm -it "$$(./script/projectname)"
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
rm -f ./secret
|
|
|
|
install: build
|
|
cp ./secret $(HOME)/bin/secret
|
|
|
|
fmt-check:
|
|
@script/fmt-check
|
|
|
|
hooks:
|
|
@script/install-precommit
|