Files
metacrypt/Makefile
Kyle Isom 2336bf5061 Add buf lint/breaking targets and fix proto naming violations
- Add buf.yaml with STANDARD lint rules and FILE-level breaking change detection
- Add proto-lint Makefile target (buf lint + buf breaking --against master)
- Add lint Makefile target (golangci-lint) and include it in all
- Fix proto target: use module= option so protoc writes to gen/ not proto/
- engine.proto: rename rpc Request→Execute and message types accordingly
- acme.proto: drop redundant ACME prefix from SetConfig/ListAccounts/ListOrders messages
- policy.proto: add CreatePolicyResponse/GetPolicyResponse wrappers instead of returning PolicyRule directly from multiple RPCs
- Update grpcserver and webserver/client.go to match renamed types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 10:27:52 -07:00

46 lines
1.0 KiB
Makefile

.PHONY: build test vet lint proto-lint clean docker all devserver metacrypt metacrypt-web proto
LDFLAGS := -trimpath -ldflags="-s -w -X main.version=$(shell git describe --tags --always --dirty 2>/dev/null || echo dev)"
proto:
protoc --go_out=. --go_opt=module=git.wntrmute.dev/kyle/metacrypt \
--go-grpc_out=. --go-grpc_opt=module=git.wntrmute.dev/kyle/metacrypt \
proto/metacrypt/v1/*.proto
metacrypt:
go build $(LDFLAGS) -o metacrypt ./cmd/metacrypt
metacrypt-web:
go build $(LDFLAGS) -o metacrypt-web ./cmd/metacrypt-web
build:
go build ./...
test:
go test ./...
vet:
go vet ./...
lint:
golangci-lint run ./...
proto-lint:
buf lint
buf breaking --against '.git#branch=master,subdir=proto'
clean:
rm -f metacrypt metacrypt-web
docker:
docker build -t metacrypt .
docker-compose:
docker compose -f deploy/docker/docker-compose.yml up --build
devserver: metacrypt metacrypt-web
./metacrypt server --config srv/metacrypt.toml &
./metacrypt-web --config srv/metacrypt.toml
all: vet lint test metacrypt metacrypt-web