The version info should use the new "debug/buildinfo" package introduced in Go 1.18
Currently, the output of the version
command and the information displayed in the UI are taken from global variables whose value is set during linking in make.sh
.
Go 1.18 will embed automatically all VCS info (commit hash, etc...) in the binary by default. As we always use the latest Go version to build releases, we should use the new debug/buildinfo
package to extract those infos from the baniry and simplify make.sh.