Skip to content

chore(release): strip debug info from release binaries - #1724

Merged
ramya18101 merged 1 commit into
mainfrom
chore/strip-release-binaries
Oct 28, 2026
Merged

ramya18101 merged 1 commit into
mainfrom
chore/strip-release-binaries

Conversation

@developerkunal

Copy link
Copy Markdown
Contributor

🔧 Changes

Release builds now pass -s -w to 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 dlv and gdb still work on ./out/auth0. Only release binaries lose symbols.

📚 References

None.

🔬 Testing

Built all six release targets with goreleaser build --snapshot and confirmed the config validates and the resulting binary runs.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@developerkunal
developerkunal requested a review from a team as a code owner October 24, 2026 04:34
@ramya18101
ramya18101 merged commit cab9b49 into main Oct 28, 2026
10 checks passed
@ramya18101
ramya18101 deleted the chore/strip-release-binaries branch October 28, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants