Mainly, a "v" is prepended to the fake Git tag before building the Go binaries and creating the SBOMs. This is important, because otherwise cyclonedx-gomod determines a version like statsd_exporter@v0.0.0-20241023094449-8cd9c6ddb1b5 instead of statsd_exporter@v0.27.1.
Also, I noticed that we already create a fake Git repo for Trino as well, so I changed the initialization of the fake Git repo to match the process we use in Trino.
Description
This PR introduces two small changes.
Mainly, a "v" is prepended to the fake Git tag before building the Go binaries and creating the SBOMs. This is important, because otherwise cyclonedx-gomod determines a version like
statsd_exporter@v0.0.0-20241023094449-8cd9c6ddb1b5
instead ofstatsd_exporter@v0.27.1
.Also, I noticed that we already create a fake Git repo for Trino as well, so I changed the initialization of the fake Git repo to match the process we use in Trino.