mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 10:12:35 +00:00
backport of commit fd26fd5e7a (#20521)
Co-authored-by: Christopher Swenson <christopher.swenson@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
ca6f644c03
commit
c33ebe97cc
3
changelog/20519.txt
Normal file
3
changelog/20519.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:improvement
|
||||||
|
Add debug symbols back to builds to fix Dynatrace support
|
||||||
|
```
|
||||||
@@ -151,17 +151,16 @@ function build() {
|
|||||||
prerelease=$(version_pre)
|
prerelease=$(version_pre)
|
||||||
build_date=$(build_date)
|
build_date=$(build_date)
|
||||||
: "${GO_TAGS:=""}"
|
: "${GO_TAGS:=""}"
|
||||||
: "${KEEP_SYMBOLS:=""}"
|
: "${REMOVE_SYMBOLS:=""}"
|
||||||
|
|
||||||
# Build our ldflags
|
# Build our ldflags
|
||||||
msg="--> Building Vault v$version, revision $revision, built $build_date"
|
msg="--> Building Vault v$version, revision $revision, built $build_date"
|
||||||
|
|
||||||
# Keep the symbol and dwarf information by default
|
# Keep the symbol and dwarf information by default
|
||||||
# TODO: maybe add REMOVE_SYMBOLS?
|
if [ -n "$REMOVE_SYMBOLS" ]; then
|
||||||
if [ -n "$KEEP_SYMBOLS" ]; then
|
|
||||||
ldflags="-s -w "
|
ldflags="-s -w "
|
||||||
else
|
else
|
||||||
ldflags="-s -w "
|
ldflags=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ldflags="${ldflags}-X github.com/hashicorp/vault/version.Version=$version -X github.com/hashicorp/vault/version.GitCommit=$revision -X github.com/hashicorp/vault/version.BuildDate=$build_date"
|
ldflags="${ldflags}-X github.com/hashicorp/vault/version.Version=$version -X github.com/hashicorp/vault/version.GitCommit=$revision -X github.com/hashicorp/vault/version.BuildDate=$build_date"
|
||||||
|
|||||||
Reference in New Issue
Block a user