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/
|
vendor/
|
||||||
/answer-data/
|
/answer-data/
|
||||||
/answer
|
/answer
|
||||||
|
/new_answer
|
||||||
|
|
||||||
dist/
|
dist/
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -7,7 +7,7 @@ DOCKER_CMD=docker
|
||||||
|
|
||||||
GO_ENV=CGO_ENABLED=0 GO111MODULE=on
|
GO_ENV=CGO_ENABLED=0 GO111MODULE=on
|
||||||
Revision=$(shell git rev-parse --short HEAD)
|
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)
|
GO=$(GO_ENV) $(shell which go)
|
||||||
|
|
||||||
build: generate
|
build: generate
|
||||||
|
|
|
@ -208,6 +208,7 @@ func cleanByproduct(b *buildingMaterial) (err error) {
|
||||||
|
|
||||||
func (b *buildingMaterial) newExecCmd(command string, args ...string) *exec.Cmd {
|
func (b *buildingMaterial) newExecCmd(command string, args ...string) *exec.Cmd {
|
||||||
cmd := exec.Command(command, args...)
|
cmd := exec.Command(command, args...)
|
||||||
|
fmt.Println(cmd.Args)
|
||||||
cmd.Dir = b.tmpDir
|
cmd.Dir = b.tmpDir
|
||||||
cmd.Stdout = os.Stdout
|
cmd.Stdout = os.Stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|
Loading…
Reference in New Issue