make golang-*Go commands
Go targets generate schemas, synchronize modules, build services and validate Temporal Workflow determinism.
When to use
Use this reference when generating, reviewing or operating a Service Architect project.
Behavior
- Generic make build/test/lint/gen targets invoke these automatically when Go components exist.
- Service-local Makefiles expose direct build, run, test, lint and image targets.
Go workspace commands
Language-specific root targets.
make golang-buildWorkspaceGenerate transport code, tidy modules and build all Go services.
make golang-testWorkspaceRun go test for all Go services.
make golang-lint / golang-lint-fixWorkspaceRun golangci-lint, optionally applying supported fixes.
make golang-fmt / fmt-go / fmt-protoWorkspaceFormat Go and protobuf sources.
make golang-genWorkspaceGenerate transports and synchronize module manifests.
make golang-codegenWorkspaceGenerate protobuf/OpenAPI code without changing module manifests.
make golang-gen-proto / gen-protoWorkspaceGenerate Go protobuf and gRPC bindings.
make golang-gen-openapi / gen-openapiWorkspaceGenerate Go OpenAPI bindings.
make go-mod-tidyWorkspaceRun go mod tidy in all Go modules.
make go-mod-syncWorkspaceReplace local coordinates with published module versions after git-push.
make golang-workflowcheckWorkspaceCheck Temporal Workflow implementations for deterministic Go behavior.
make golang-docker-buildWorkspaceBuild service images entirely in Docker.
make golang-cleanWorkspaceRemove Go build artifacts.
make golang-toolsWorkspaceInstall pinned buf, protoc plugins, golangci-lint, workflowcheck and OpenAPI tools.
make debug-<service-name>ServiceBuild an unoptimized Linux binary and restart the selected service with Delve on its generated port. <service-name> is derived from Service.name.
Standalone Go service commands
Targets available inside a generated Go service.
make buildServiceGenerate protobuf code and compile cmd/service/main.go.
make runServiceRun with config/config.yaml and config/overrides.yaml.
make testServiceRun go test ./....
make lint / lint-fixServiceRun golangci-lint, optionally with --fix.
make gen-proto / fmt-protoServiceGenerate or format local protobuf files.
make service_build_linuxServiceBuild a static Linux service binary for a local image.
make service_build_linux_debugServiceBuild Linux with optimizations and inlining disabled for Delve.
make docker-buildServiceBuild the standalone production image.
make docker-build-localServiceBuild the source/debug-oriented local image.
make hooksServiceInstall generated pre-commit lint and pre-push test hooks.
make cleanServiceRemove the service bin directory.
Go workflow
make golang-codegen
make golang-workflowcheck
make golang-test
make debug-<service-name>