From 489c75a363cd9db9209856a2d0f3130fe761dd4e Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Tue, 17 May 2016 16:24:04 -0400 Subject: [PATCH] Go's -X linker flag now requires only one argument (#3540) This fixes building `packer` with Go >1.6. From https://golang.org/cmd/link/: ``` -X importpath.name=value Set the value of the string variable in importpath named name to value. Note that before Go 1.5 this option took two separate arguments. Now it takes one argument split on the first = sign. ``` --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 84f87d6d4..3c2c889e0 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -37,7 +37,7 @@ set +e gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ - -ldflags "-X github.com/mitchellh/packer/version.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \ + -ldflags "-X github.com/mitchellh/packer/version.GitCommit=${GIT_COMMIT}${GIT_DIRTY}" \ -output "pkg/{{.OS}}_{{.Arch}}/packer" \ . set -e