diff --git a/.goreleaser.yml b/.goreleaser.yml index 770d3e706..cb26fe766 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -48,6 +48,11 @@ builds: - arm64 env: - CGO_ENABLED=0 + tags: + # The `disable_grpc_modules` build tag excludes gRPC dependencies from cloud.google.com/go/storage, + # reducing binary size since we only use the REST client (storage.NewClient), not the + # gRPC client (storage.NewGRPCClient). Related issue: https://github.com/googleapis/google-cloud-go/issues/12343 + - disable_grpc_modules id: nix goos: - linux diff --git a/Makefile b/Makefile index c92c37ed8..48d04a053 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ gen-docs: internal/temporalcli/commands.yaml cliext/option-sets.yaml -output dist/docs build: - go build ./cmd/temporal + go build -tags disable_grpc_modules ./cmd/temporal test: (cd cliext && go test ./...)