Skip to content

Commit 0e239c9

Browse files
committed
Add -buildvcs=false flag to Taskfiles
1 parent b6b8c18 commit 0e239c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

v3/internal/commands/build_assets/darwin/Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tasks:
1313
cmds:
1414
- go build {{.BUILD_FLAGS}} -o {{.OUTPUT}}
1515
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}}'
1717
DEFAULT_OUTPUT: '{{.BIN_DIR}}/{{.APP_NAME}}'
1818
OUTPUT: '{{ .OUTPUT | default .DEFAULT_OUTPUT }}'
1919
env:

v3/internal/commands/build_assets/linux/Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tasks:
1313
cmds:
1414
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}
1515
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}}'
1717
env:
1818
GOOS: linux
1919
CGO_ENABLED: 1

v3/internal/commands/build_assets/windows/Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ tasks:
1818
- cmd: rm -f *.syso
1919
platforms: [linux, darwin]
2020
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}}'
2222
env:
2323
GOOS: windows
2424
CGO_ENABLED: 0

0 commit comments

Comments
 (0)