Repository navigation
chore(release): strip debug info from release binaries - #1724
Merged
Merged
Conversation
ramya18101
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Changes
Release builds now pass
-s -wto the linker in.goreleaser.yml, so the published binaries no longer carry the symbol table and DWARF debug data. The CLI's behavior is unchanged. Stack traces, crash reporting and the stamped version and commit all keep working, because Go keeps its own function and line tables.This makes the release archives noticeably smaller, from roughly 28 to 31 MB down to roughly 17.5 to 19 MB depending on the platform.
Local builds from the Makefile are untouched and keep full debug info, so
dlvandgdbstill work on./out/auth0. Only release binaries lose symbols.📚 References
None.
🔬 Testing
Built all six release targets with
goreleaser build --snapshotand confirmed the config validates and the resulting binary runs.📝 Checklist