There's a closed pull request on the void-packages repository go: add build_style=go to avoid code duplication https://github.com/void-linux/void-packages/pull/20435 Description: The GOARCH selection snippet was duplicated in the go build_style script for environment variables and in the go template itself. Furthermore, there were discrepancies between the two snippets, which have been fixed. This makes the go template leaner, and makes both cases more robust (changes to GOARCH selection can be done in a single place).