From 21f15aea3f51c0a9efe7692d40d229cc1a7d5d3b Mon Sep 17 00:00:00 2001 From: Paul O'Connor Date: Wed, 17 Feb 2016 17:35:04 +0100 Subject: [PATCH 1/2] Use new link ldflags syntax --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index fbaee92a20..4219872dc3 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -39,7 +39,7 @@ echo "==> Building..." gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ - -ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ + -ldflags "-X=main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ -output "pkg/{{.OS}}_{{.Arch}}/terraform-{{.Dir}}" \ $(go list ./... | grep -v /vendor/) From e3c6c05395c66274f2104c48fe7ac3791bf9ccdf Mon Sep 17 00:00:00 2001 From: Paul O'Connor Date: Wed, 17 Feb 2016 17:44:38 +0100 Subject: [PATCH 2/2] Put the equals in the correct place --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 4219872dc3..c311f82790 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -39,7 +39,7 @@ echo "==> Building..." gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ - -ldflags "-X=main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ + -ldflags "-X main.GitCommit=${GIT_COMMIT}${GIT_DIRTY}" \ -output "pkg/{{.OS}}_{{.Arch}}/terraform-{{.Dir}}" \ $(go list ./... | grep -v /vendor/)