Skip to content

Commit

Permalink
Merge pull request #26 from stuartrexking/fix-install
Browse files Browse the repository at this point in the history
Escape and correct ldflags in Makefile install
  • Loading branch information
dstnbrkr committed Sep 6, 2016
2 parents 8573936 + 00dd8cb commit 55945b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -14,7 +14,8 @@ GOVERSION = '$(shell go version)'
BUILDTIME = '$(shell date -u +"%Y-%m-%dT%H:%M:%SZ")'
install: govendor
touch cmd/sneaker/version.go
${GOPATH}/bin/govendor install $(GOBUILDFLAGS) -ldflags "-X main.version $(VERSION) -X main.goVersion $(GOVERSION) -X main.buildTime $(BUILDTIME)" +local
${GOPATH}/bin/govendor sync
${GOPATH}/bin/govendor install $(GOBUILDFLAGS) -ldflags "-X \"main.version=$(VERSION)\" -X \"main.goVersion=$(GOVERSION)\" -X \"main.buildTime=$(BUILDTIME)\"" +local

# run tests
test: govendor
Expand Down

0 comments on commit 55945b6

Please sign in to comment.