Skip to content

Commit

Permalink
Include Go toolchain to --version (#5830)
Browse files Browse the repository at this point in the history
* Include Go version

* fix import order
  • Loading branch information
sapk authored and techknowlogick committed Jan 24, 2019
1 parent 4aa2f4f commit d6c229c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package main // import "code.gitea.io/gitea"

import (
"os"
"runtime"
"strings"

"code.gitea.io/gitea/cmd"
Expand Down Expand Up @@ -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)
}

0 comments on commit d6c229c

Please sign in to comment.