Skip to content

Commit f28e174

Browse files
sapktechknowlogick
authored andcommitted
Backport #5830 : Include Go toolchain to --version (#5832)
* Include Go version * fix import order
1 parent 2c26521 commit f28e174

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package main // import "code.gitea.io/gitea"
88

99
import (
1010
"os"
11+
"runtime"
1112
"strings"
1213

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

6263
func formatBuiltWith(Tags string) string {
6364
if len(Tags) == 0 {
64-
return ""
65+
return " built with " + runtime.Version()
6566
}
6667

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

0 commit comments

Comments
 (0)