File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ builds:
20
20
- -mod=readonly
21
21
- -trimpath
22
22
ldflags :
23
+ - -X main.version={{ .Version }}
24
+ - -X main.commit={{ .Commit }}
25
+ - -X main.date={{ .CommitDate }}
23
26
- -s -w
24
27
- -linkmode=external
25
28
- -extldflags '-Wl,-z,muldefs --static -lm'
@@ -41,6 +44,9 @@ builds:
41
44
- -mod=readonly
42
45
- -trimpath
43
46
ldflags :
47
+ - -X main.version={{ .Version }}
48
+ - -X main.commit={{ .Commit }}
49
+ - -X main.date={{ .CommitDate }}
44
50
- -s -w
45
51
- -linkmode=external
46
52
- -extldflags '-Wl,-z,muldefs --static -lm'
@@ -62,6 +68,9 @@ builds:
62
68
- -mod=readonly
63
69
- -trimpath
64
70
ldflags :
71
+ - -X main.version={{ .Version }}
72
+ - -X main.commit={{ .Commit }}
73
+ - -X main.date={{ .CommitDate }}
65
74
- -w -s
66
75
- -linkmode=external
67
76
tags :
@@ -81,6 +90,9 @@ builds:
81
90
- -mod=readonly
82
91
- -trimpath
83
92
ldflags :
93
+ - -X main.version={{ .Version }}
94
+ - -X main.commit={{ .Commit }}
95
+ - -X main.date={{ .CommitDate }}
84
96
- -w -s
85
97
- -linkmode=external
86
98
tags :
You can’t perform that action at this time.
0 commit comments