Description
When a replace is in the go.mod file the build does not handle is nicely and the SHA that we retrieve for the docker build tag shows strange info:
go list -m "github.com/apache/incubator-yunikorn-core" | cut -d "-" -f6 4ea58b502d38 => ../incubator
We only want the first part of the info.
The second thing we need to be careful with is the tag: if the semver tag changes to include any dashes we will be generating the wrong info.