mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-30 03:34:02 -04:00
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:
committed by
Matthew Hooker
parent
7bbc29d4b2
commit
489c75a363
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user