Skip to content

Commit 70ea9cf

Browse files
committed
fix(goreleaser): update -X flag to use constant module path
{{ .ModulePath }} var in workspace mode are multiple module paths
1 parent 2503f3a commit 70ea9cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ builds:
99
- -trimpath
1010
ldflags:
1111
- -s -w
12-
- -X {{ .ModulePath }}/pkg/consts.Version={{ .Version }}
13-
- -X {{ .ModulePath }}/pkg/consts.Commit={{ .ShortCommit }}
14-
- -X {{ .ModulePath }}/pkg/consts.CommitDate={{ .CommitDate }}
12+
- -X github.com/iyear/tdl/pkg/consts.Version={{ .Version }}
13+
- -X github.com/iyear/tdl/pkg/consts.Commit={{ .ShortCommit }}
14+
- -X github.com/iyear/tdl/pkg/consts.CommitDate={{ .CommitDate }}
1515
mod_timestamp: '{{ .CommitTimestamp }}'
1616
goos:
1717
- linux

0 commit comments

Comments
 (0)