Open gruyaume opened 3 months ago
I'm pretty sure this can be fixed by using the following ldflags
at build time:
-ldflags "${LD_FLAGS} -X github.com/hashicorp/vault/version.GitCommit='${GIT_COMMIT}${GIT_DIRTY}' -X github.com/hashicorp/vault/version.BuildDate=${BUILD_DATE}" \
Reference:
Plus, whatever we do here, let's make sure we port it to the rock:
Describe the bug
The build date is missing from the vault binary. When you run
vault status
, you seen/a
as the build date.To Reproduce
sudo snap install vault
sudo snap start vault.vaultd
vault status
Here note the
n/a
next to Build Date.The same can be observed when running
vault --version
, where we only see the vault version.Expected behavior
The following outputs are taken from running the same commands using the vault debs:
And in the vault version command:
Environment