update make plugin

This commit is contained in:
aichy126 2023-02-02 14:59:02 +08:00
parent d538b531bd
commit 9de92822f3
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -22,5 +22,6 @@ tmp
vendor/
/answer-data/
/answer
/new_answer
dist/

View File

@ -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

View File

@ -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