https://bugzilla.redhat.com/show_bug.cgi?id=2391155
--- Comment #8 from Robby Callicotte rcallicotte@mailbox.org --- (In reply to Neal Gompa from comment #6)
export LDFLAGS="-X %{goipath}.version=%{version}"
This should probably be "%{version}-%{release}".
After compiled, this will show up like below: <mock-chroot> sh-5.3# ./umoci -v umoci version 0.5.0-1.fc44
This appears to be somewhat similar to how the Open Suse package is built:
export VERSION="$(cat ./VERSION)" if [ "$VERSION" != "%{version}" ]; then # Append "_suse" if the version is not an upstream one. VERSION="%{version}_suse" fi