mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
Add buildvcs=false to revert to older behavior of not embedding VCS info into Vault binary (#30926)
* Add buildvcs=false to revert to older behavior of not embedding VCS info into Vault binary * Add cl
This commit is contained in:
parent
b54aba9fd8
commit
6cd369f468
3 changed files with 5 additions and 2 deletions
3
changelog/30926.txt
Normal file
3
changelog/30926.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
core: Omit automatic version control information of the main module from compiled Vault binaries
|
||||
```
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"^
|
||||
.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue