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.
```
This commit is contained in:
Sean Chittenden
2016-09-20 16:34:30 -07:00
committed by Matthew Hooker
parent 7bbc29d4b2
commit 489c75a363
+1 -1
View File
@@ -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