I don't know what go-pmem is, but a Go distribution should have a file
$GOROOT/VERSION that contains the version number of the release. If
you download the sources of, say, the Go 1.19 release, you will see a
VERSION file. For development purposes, if that VERSION file does not
exist, the Go build will pull the version from the git repo. You seem
to have Go sources that are not in a git repo and also do not have a
VERSION file. That setup is not expected or supported. The simple
fix is to create your own VERSION file.
Ian