stackabletech / docker-images

Product images for the Stackable Data Platform
https://docs.stackable.tech/home/stable/operators/
Apache License 2.0
17 stars 4 forks source link

fix: determine correct version for Golang components #906

Closed dervoeti closed 3 weeks ago

dervoeti commented 1 month ago

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 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.