fix build ld_flag (#16430)

This commit is contained in:
Clint 2017-10-24 14:10:15 -05:00 committed by GitHub
parent 43dcaa1a00
commit 385e564250
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ LD_FLAGS="-X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY} $LD_FLAGS"
# In release mode we don't want debug information in the binary # In release mode we don't want debug information in the binary
if [[ -n "${TF_RELEASE}" ]]; then if [[ -n "${TF_RELEASE}" ]]; then
LD_FLAGS="-X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY} -X github.com/hashicorp/terraform/terraform.VersionPrerelease= -s -w" LD_FLAGS="-X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY} -X github.com/hashicorp/terraform/version.Prerelease= -s -w"
fi fi
# Build! # Build!