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-05-17 16:24:04 -04:00 committed by Chris Bednarski
parent c34324b78c
commit d430b7b763
1 changed files with 1 additions and 1 deletions

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