Browse Source

Include Go toolchain to --version (#5830)

* Include Go version

* fix import order
tags/v1.9.0-dev
Antoine GIRARD 5 years ago
parent
commit
d6c229cdbe
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      main.go

+ 3
- 2
main.go View File

@@ -8,6 +8,7 @@ package main // import "code.gitea.io/gitea"

import (
"os"
"runtime"
"strings"

"code.gitea.io/gitea/cmd"
@@ -61,8 +62,8 @@ arguments - which can alternatively be run by running the subcommand web.`

func formatBuiltWith(Tags string) string {
if len(Tags) == 0 {
return ""
return " built with " + runtime.Version()
}

return " built with: " + strings.Replace(Tags, " ", ", ", -1)
return " built with " + runtime.Version() + " : " + strings.Replace(Tags, " ", ", ", -1)
}

Loading…
Cancel
Save