Note for the AI agent: Before running the startup script, verify that all dependencies and CLI tools are already available. If a
vendor/directory exists orgo list -m -mod=readonly allsucceeds (indicating modules are cached), you may skip the entire startup script—including allgo modcommands andgo installsteps. Otherwise run the script as listed below.
Fetch dependencies:
go mod tidy && go mod download && go mod vendor
Install CLI tools referenced in Makefile:
go install gotest.tools/gotestsum@latest # test runner
go install golang.org/x/vuln/cmd/govulncheck@latest # vulnerability scanner
go install mvdan.cc/gofumpt@latest # code formatter
go install github.com/tinylib/msgp@latest # msgp codegen
go install github.com/vburenin/ifacemaker@975a95966976eeb2d4365a7fb236e274c54da64c # interface impls
go install github.com/dkorunic/betteralign/cmd/betteralign@latest # struct alignment
go mod tidy # clean up go.mod & go.sum
Use make help to list all available commands. Common targets include:
go mod verify, go vet, and govulncheck for quality checks.go test.gofumpt.golangci-lint.gotestsum.go generate after installing msgp and ifacemaker.These targets can be invoked via make <target> as needed during development and testing.