5 ms·
Do NOT strip Go binary: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717172 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717172
by lossolo 11y ago
Do NOT strip Go binary:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717172 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717172
- deleted 11y ago[deleted]
- userbinator 11y agoFixed in version golang/2:1.1.1-4 That bug is 3 years old and seems to be architecture-specific.
- lossolo 11y agoYou are missing the point. Read what was quoted about stripping binaries from Dave Cheney.
- frio 11y ago"Closes: 717172 Changes: golang (2:1.1.1-4) unstable; urgency=low . * Disable stripping, it breaks go binaries on some architectures" The "fix" is that the Debian team stopped stripping the binaries ;).
- FiloSottile 11y agoEven if recent discussion is more mixed [0], that is why I linked to [1], recommended not to use strip(1), and explained -ldflags="-s -w" instead :) [0] https://groups.google.com/d/msg/golang-dev/ABppMOjYP6w/6JsfT2MQAwAJ https://groups.google.com/d/msg/golang-dev/ABppMOjYP6w/6JsfT... [1] https://github.com/docker/docker/blob/2a95488f7843a773de2b541a47d9b971a635bfff/project/PACKAGERS.md#stripping-binaries https://github.com/docker/docker/blob/2a95488f7843a773de2b54...
- mordocai 11y agoJust be clear here: This is saying don't strip using the standard strip utility. As the author says in their post, go has flags to do stripping for go binaries.