Skip to content

Commit

Permalink
Merge pull request #933 from hashicorp/b-go-linker-flag
Browse files Browse the repository at this point in the history
Go's -X linker flag now requires only one argument
  • Loading branch information
diptanu committed Mar 17, 2016
2 parents 4cdcd3c + 2bd425b commit 8a433ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
cd "$DIR"

# Get the git commit
GIT_COMMIT=$(git rev-parse HEAD)
GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)
GIT_COMMIT="$(git rev-parse HEAD)"
GIT_DIRTY="$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)"

# Determine the arch/os combos we're building for
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
Expand All @@ -39,7 +39,7 @@ gox \
-os="!openbsd" \
-arch="${XC_ARCH}" \
-osarch="!linux/arm !darwin/386" \
-ldflags "-X main.GitCommit ${GIT_COMMIT}${GIT_DIRTY}" \
-ldflags "-X main.GitCommit='${GIT_COMMIT}${GIT_DIRTY}'" \
-cgo \
-output "pkg/{{.OS}}_{{.Arch}}/nomad" \
.
Expand Down

0 comments on commit 8a433ee

Please sign in to comment.