Skip to content

Commit 923cb05

Browse files
committed
fix: trimpath argument
1 parent 0fbf7d9 commit 923cb05

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ vars:
3232

3333
# Release flags
3434
RELEASE_LDFLAGS: -X '{{.GO_PKG}}/pkg/config.BuildType=release'
35-
RELEASE_GCFLAGS: -trimpath
35+
RELEASE_BUILDFLAGS: -trimpath
3636

3737
tasks:
3838
build:
@@ -54,8 +54,8 @@ tasks:
5454
cmds:
5555
- >-
5656
go build {{.GOFLAGS}}
57+
{{.RELEASE_BUILDFLAGS}}
5758
-o {{.BINARY_NAME}}
58-
-gcflags="{{.RELEASE_GCFLAGS}}"
5959
-ldflags "{{.COMMON_LDFLAGS}} {{.ENV_LDFLAGS}} {{.RELEASE_LDFLAGS}}"
6060
6161
install:
@@ -77,7 +77,7 @@ tasks:
7777
cmds:
7878
- >-
7979
go install
80-
-gcflags="{{.RELEASE_GCFLAGS}}"
80+
{{.RELEASE_BUILDFLAGS}}
8181
-ldflags "{{.COMMON_LDFLAGS}} {{.ENV_LDFLAGS}} {{.RELEASE_LDFLAGS}}"
8282
.
8383

0 commit comments

Comments
 (0)