Conversation
This disables DWARF generation, which dramatically decreases the size of the binary. Notably, this does *not* include `-s` which disables the symbol table, as doing so would *also* make it so that `govulncheck` cannot be run on the resulting binary with meaningful results. Before is ~90M and after is ~72M. If we add `-s` as well, that ~72M drops to ~63M, but we also lose `govulncheck` so again, IMO, that's not worth doing. Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
|
Is this something we can / should do for other binaries as well? oh; recalls me that I tried to update to compat 13, which had a todo that an override could be removed, but that doesn't seem to work 😅 |
|
@tonistiigi @crazy-max PTAL |
thaJeztah
left a comment
There was a problem hiding this comment.
SGTM
but asked Tonis and Kevin to have a look
|
It is something you could/should do for other binaries, but I think they're all using upstream build scripts, so those changes don't happen in this repository. (For Compose in particular, this already happened back in docker/compose#10325, for example.) |
We already do this in upstream iiuc |
Yep, quoted in my OP: 😅 (IMO that should drop |
I'll assume that's a "LGTM", so let me merge this one. |
This disables DWARF generation, which dramatically decreases the size of the binary.
Notably, this does not include
-swhich disables the symbol table, as doing so would also make it so thatgovulncheckcannot be run on the resulting binary with meaningful results.Before is ~90M and after is ~72M.
If we add
-sas well, that ~72M drops to ~63M, but we also losegovulncheckso again, IMO, that's not worth doing.See also:
govulncheck) compose#10325