How to configure go build ldflags in an AWS SAM project?

前端 未结 0 1408
情深已故
情深已故 2021-01-07 20:16

I want to control the sam build to do something like:

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags -X main.Version=$(git describe --al         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题