There is an updated pull request by arp242 against master on the void-packages repository https://github.com/arp242/void-packages gosize https://github.com/void-linux/void-packages/pull/32016 go: reduce package size by stripping binaries and removing pkg A very long time ago strip didn't always work well on Go binaries, but this has been fixed for almost a decade[1], so there is no need to keep this. Just the standard strip hook won't work, as it will try (and fail) to strip files in testdata and some other things. You can add nostrip_files, but that would be a long list. [1]: http://dominik.honnef.co/posts/2016/10/go-and-strip/ --- This also removes the pkg/linux_arch directory from the installation. This is a pre-compiled cache of the standard library, and isn't really needed. The only downside of not installing it is that the first compile will take a few seconds longer (after which it's in the cache), and since the Go compiler is fairly fast it's not a big deal IMO. Alternatively, only pkg/cmd could be removed. This contains the cache for the go command and "go tool [..]" commands, but you can never import this as it's all "package main", so it's a useless cache AFAIK. It's also the biggest contributor to the size. --- Comparison of sizes (each one relative to the previous one): current Package: 111M Installed: 369M rm pkg/cmd Package: 90M (-21M) Installed: 268M (-101M) strip Package: 62M (-28M) Installed: 236M (-32M) rm pkg Package: 45M (-17M) Installed: 158M (-78M) So that's a total saving of 66M in the package size, and 211M for the installed size. #### General - [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements) #### Have the results of the proposed changes been tested? - [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me - [ ] I generally don't use the affected packages but briefly tested this PR A patch file from https://github.com/void-linux/void-packages/pull/32016.patch is attached