mirror of https://gitee.com/answerdev/answer.git
update make plugin
This commit is contained in:
parent
d538b531bd
commit
9de92822f3
|
@ -22,5 +22,6 @@ tmp
|
|||
vendor/
|
||||
/answer-data/
|
||||
/answer
|
||||
/new_answer
|
||||
|
||||
dist/
|
||||
|
|
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ DOCKER_CMD=docker
|
|||
|
||||
GO_ENV=CGO_ENABLED=0 GO111MODULE=on
|
||||
Revision=$(shell git rev-parse --short HEAD)
|
||||
GO_FLAGS=-ldflags="-X github.com/answerdev/answer/cmd.Version=$(VERSION) -X 'github.com/answerdev/answer/cmd.Revision=$(Revision)' -X 'github.com/answerdev/answer/cmd.Time=`date`' -extldflags -static"
|
||||
GO_FLAGS=-ldflags="-X github.com/answerdev/answer/cmd.Version=$(VERSION) -X 'github.com/answerdev/answer/cmd.Revision=$(Revision)' -X 'github.com/answerdev/answer/cmd.Time=`date +%s`' -extldflags -static"
|
||||
GO=$(GO_ENV) $(shell which go)
|
||||
|
||||
build: generate
|
||||
|
|
|
@ -208,6 +208,7 @@ func cleanByproduct(b *buildingMaterial) (err error) {
|
|||
|
||||
func (b *buildingMaterial) newExecCmd(command string, args ...string) *exec.Cmd {
|
||||
cmd := exec.Command(command, args...)
|
||||
fmt.Println(cmd.Args)
|
||||
cmd.Dir = b.tmpDir
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
|
Loading…
Reference in New Issue