New issue by twpayne on void-packages repository https://github.com/void-linux/void-packages/issues/34343 Description: ### System * xuname: `Void 5.4.0-86-generic x86_64 GenuineIntel uptodate rFF` * package: `age-1.0.0_1` ### Expected behavior `age --version` should print age's version number: ```console # age --version 1.0.0 ``` ### Actual behavior `age --version` prints `(devel)`: ```console # age --version (devel) ``` ### Steps to reproduce the behavior ```console $ docker run -it ghcr.io/void-linux/void-linux:20211130rc01-full-x86_64 /bin/sh # xbps-install --sync --update --yes age ... [*] Configuring unpacked packages age-1.0.0_1: configuring ... age-1.0.0_1: installed successfully. 1 downloaded, 1 installed, 0 updated, 1 configured, 0 removed. # age --version (devel) ``` ### Explanation age's version number needs to be set a build time by passing ``` -ldflags "-X main.Version=$VERSION" ``` to `go build`. For an example, see [age's own build GitHub Action](https://github.com/FiloSottile/age/blob/main/.github/workflows/build.yml#L34).