Commit 83359ad 1 parent 46821ec commit 83359ad Copy full SHA for 83359ad
File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ builds:
41
41
flags :
42
42
- -trimpath
43
43
ldflags :
44
- - -s -w -X {{.ModulePath}.version={{.Version}} -X {{.ModulePath}}.commit={{.Commit}} -X {{.ModulePath}}.date={{ .CommitDate }} -X {{.ModulePath}}.treeState={{ .IsGitDirty }}
44
+ - -s -w -X {{.ModulePath}/main .version={{.Version}} -X {{.ModulePath}}/main .commit={{.Commit}} -X {{.ModulePath}}/main .date={{ .CommitDate }}
45
45
46
46
universal_binaries :
47
47
- replace : false
Original file line number Diff line number Diff line change @@ -15,10 +15,9 @@ import (
15
15
16
16
// nolint: gochecknoglobals
17
17
var (
18
- commit = "unknown"
19
- date = "unknown"
20
- treeState = "unknown"
21
- version = "dev"
18
+ commit = "unknown"
19
+ date = "unknown"
20
+ version = "dev"
22
21
)
23
22
24
23
func main () {
You can’t perform that action at this time.
0 commit comments