heroku/buildpacks-go

Strip Go binaries by default

Opened this issue · 0 comments

Reading https://honnef.co/articles/stripping-go-elf-binaries-is-safe/ suggests that stripping Go binaries is both safe and doesn't affect eg panic error messages.

As such, it seems like the buildpack could strip built binaries by default, to reduce the app image size?

(Whilst the overall app image size is likely dominated by the base stack image size - the base image is likely already present on remotes, so reducing the Go binary layer size will still have a reasonable impact on reducing bits over the wire. Plus I'm presuming smaller Go binaries may even boot faster?)

GUS-W-13567692.