Commit 0e239c9 1 parent b6b8c18 commit 0e239c9 Copy full SHA for 0e239c9
File tree 3 files changed +3
-3
lines changed
v3/internal/commands/build_assets
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 13
13
cmds :
14
14
- go build {{.BUILD_FLAGS}} -o {{.OUTPUT}}
15
15
vars :
16
- BUILD_FLAGS : ' {{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s"{{else}}-gcflags=all="-l"{{end}}'
16
+ BUILD_FLAGS : ' {{if eq .PRODUCTION "true"}}-tags production -trimpath -buildvcs=false - ldflags="-w -s"{{else}}-gcflags=all="-l"{{end}}'
17
17
DEFAULT_OUTPUT : ' {{.BIN_DIR}}/{{.APP_NAME}}'
18
18
OUTPUT : ' {{ .OUTPUT | default .DEFAULT_OUTPUT }}'
19
19
env :
Original file line number Diff line number Diff line change 13
13
cmds :
14
14
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}
15
15
vars :
16
- BUILD_FLAGS : ' {{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s"{{else}}-gcflags=all="-l"{{end}}'
16
+ BUILD_FLAGS : ' {{if eq .PRODUCTION "true"}}-tags production -trimpath -buildvcs=false - ldflags="-w -s"{{else}}-gcflags=all="-l"{{end}}'
17
17
env :
18
18
GOOS : linux
19
19
CGO_ENABLED : 1
Original file line number Diff line number Diff line change 18
18
- cmd : rm -f *.syso
19
19
platforms : [linux, darwin]
20
20
vars :
21
- BUILD_FLAGS : ' {{if eq .PRODUCTION "true"}}-tags production -trimpath -ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
21
+ BUILD_FLAGS : ' {{if eq .PRODUCTION "true"}}-tags production -trimpath -buildvcs=false - ldflags="-w -s -H windowsgui"{{else}}-gcflags=all="-l"{{end}}'
22
22
env :
23
23
GOOS : windows
24
24
CGO_ENABLED : 0
You can’t perform that action at this time.
0 commit comments