diff --git a/Makefile b/Makefile index 8f197edda9..b40ad9b853 100644 --- a/Makefile +++ b/Makefile @@ -258,7 +258,7 @@ ci-verify: # This is used for release builds by .github/workflows/build.yml build: @echo "--> Building Vault $(VAULT_VERSION)" - @go build -v -tags "$(GO_TAGS)" -ldflags " -X github.com/hashicorp/vault/sdk/version.Version=$(VAULT_VERSION) -X github.com/hashicorp/vault/sdk/version.GitCommit=$(VAULT_REVISION) -X github.com/hashicorp/vault/sdk/version.BuildDate=$(VAULT_BUILD_DATE)" -o dist/ + @go build -v -tags "$(GO_TAGS)" -ldflags " -s -w -X github.com/hashicorp/vault/sdk/version.Version=$(VAULT_VERSION) -X github.com/hashicorp/vault/sdk/version.GitCommit=$(VAULT_REVISION) -X github.com/hashicorp/vault/sdk/version.BuildDate=$(VAULT_BUILD_DATE)" -o dist/ .PHONY: version # This is used for release builds by .github/workflows/build.yml diff --git a/changelog/17678.txt b/changelog/17678.txt new file mode 100644 index 0000000000..bddf213d56 --- /dev/null +++ b/changelog/17678.txt @@ -0,0 +1,3 @@ +```release-note:improvement +Reduced binary size +```