fix
This commit is contained in:
parent
111c621643
commit
eca4a3e927
2
get.go
2
get.go
|
@ -26,6 +26,8 @@ func Get() (Binfo, error) {
|
|||
b.Module.Path = o.Main.Path
|
||||
b.Module.Sum = o.Main.Sum
|
||||
|
||||
b.Build.GoVersion = o.GoVersion
|
||||
|
||||
for _, setting := range o.Settings {
|
||||
switch setting.Key {
|
||||
case "-buildmode":
|
||||
|
|
10
summary.tmpl
10
summary.tmpl
|
@ -29,6 +29,12 @@
|
|||
|
||||
{{- .Sep -}}
|
||||
|
||||
{{- if and .VCS (ne .I.VCS.Name "") -}}
|
||||
vcs {{ .I.VCS.Name }} (rev {{ .I.VCS.Revision }}) (at {{ .I.VCS.Time.Format "2006-01-02 15:04:05" }}){{- if .I.VCS.Modified }} (modified){{- end -}}
|
||||
{{- if .VCS -}}
|
||||
{{- $time := .I.VCS.Time.Format "2006-01-02 15:04:05" -}}
|
||||
|
||||
vcs
|
||||
{{- if ne .I.VCS.Name "" }} {{ .I.VCS.Name }}{{- end -}}
|
||||
{{- if ne .I.VCS.Revision "" }} (revision {{ .I.VCS.Revision }}){{- end -}}
|
||||
{{- if ne $time "" }} (at {{ $time }}){{- end -}}
|
||||
{{- if .I.VCS.Modified }} (modified){{- end -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue