New comment by fanyx on void-packages repository https://github.com/void-linux/void-packages/pull/39732#issuecomment-1276115701 Comment: `go_ldflags="-X main.version=v${version}"` did the job just fine. `go_ldflags="-X ${go_import_path}/cmd/kubectx/version.version=v${version}` unfortunately does not either, no idea why...