Clone and prepare
Clone and prepare
Build and test
Developer tooling runs inside Docker via theMakefile, so you only need Docker and make:
Build and test
make help to list every target. The common ones are:
- make test: Run lint and the full test suite.
- make lint: Run
golangci-lint. - make unit-test: Run the test suite the way CI does, with the race detector, as parallel shards in pristine containers that need only Docker and the checkout.
make unit-test SHARD=coreruns one shard; the shards mirror the CI matrix and are defined inscripts/test-shard.sh. Per-shard logs land in.unit-test/and coverage incoverage-<shard>.out. - make vendor:
go mod tidyandgo mod vendor. - make mock: Regenerate mocks under
mocks/. - make protogen: Regenerate protobuf Go code.
- make certs: Regenerate test TLS fixtures under
test/data/certs. - make clean: Remove the tools image and its cache volume.
Local Go commands
You can also use standard Go commands if you have Go installed:Local Go commands