Skip to content

Commit

Permalink
Reduce binary size by stripping debug information
Browse files Browse the repository at this point in the history
Strip the symbol table and DWARF debug information from the production
and dev releases. Note that stack traces don't lose any information from this change.

See pulumi/pulumi#17868
  • Loading branch information
julienp committed Nov 26, 2024
1 parent e1a6ac3 commit 20ef6d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ builds:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}
- -w -s -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}

- binary: pulumi-java-gen
id: pulumi-java-gen
Expand All @@ -34,8 +36,10 @@ builds:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}
- -w -s -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}

archives:
- name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

### Unreleased

- Reduce binary size by stripping debug information

## 0.18.0 (2024-11-26)

### Improvements
Expand Down

0 comments on commit 20ef6d5

Please sign in to comment.