Skip to content

Commit

Permalink
Makefile: Wraped with quotes the go location in go variable
Browse files Browse the repository at this point in the history
  • Loading branch information
EkkoKo authored and shuashuai committed Aug 6, 2024
1 parent 5afa01b commit 11fb3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DOCKER_CMD=docker
GO_ENV=CGO_ENABLED=0 GO111MODULE=on
Revision=$(shell git rev-parse --short HEAD 2>/dev/null || echo "")
GO_FLAGS=-ldflags="-X github.com/apache/incubator-answer/cmd.Version=$(VERSION) -X 'github.com/apache/incubator-answer/cmd.Revision=$(Revision)' -X 'github.com/apache/incubator-answer/cmd.Time=`date +%s`' -extldflags -static"
GO=$(GO_ENV) $(shell which go)
GO=$(GO_ENV) "$(shell which go)"

build: generate
@$(GO) build $(GO_FLAGS) -o $(BIN) $(DIR_SRC)
Expand Down

0 comments on commit 11fb3aa

Please sign in to comment.