diff --git a/changelog/30926.txt b/changelog/30926.txt new file mode 100644 index 0000000000..7bc93c8cae --- /dev/null +++ b/changelog/30926.txt @@ -0,0 +1,3 @@ +```release-note:bug +core: Omit automatic version control information of the main module from compiled Vault binaries +``` diff --git a/scripts/ci-helper.sh b/scripts/ci-helper.sh index e105a97f4f..a267700886 100755 --- a/scripts/ci-helper.sh +++ b/scripts/ci-helper.sh @@ -124,7 +124,7 @@ function build() { mkdir -p out set -x go env - go build -v -tags "$GO_TAGS" -ldflags "$ldflags" -o dist/ + go build -v -buildvcs=false -tags "$GO_TAGS" -ldflags "$ldflags" -o dist/ set +x popd } diff --git a/scripts/windows/build.bat b/scripts/windows/build.bat index 79e27605a7..e4928e7b4e 100644 --- a/scripts/windows/build.bat +++ b/scripts/windows/build.bat @@ -63,7 +63,7 @@ del /f "%_GO_ENV_TMP_FILE%" 2>nul REM Build! echo ==^> Building... go build^ - -ldflags "-X github.com/hashicorp/vault/version.GitCommit=%_GIT_COMMIT%%_GIT_DIRTY% -X github.com/hashicorp/vault/version.BuildDate=%_BUILD_DATE%"^ + -buildvcs=false -ldflags "-X github.com/hashicorp/vault/version.GitCommit=%_GIT_COMMIT%%_GIT_DIRTY% -X github.com/hashicorp/vault/version.BuildDate=%_BUILD_DATE%"^ -o "bin/vault.exe"^ .