From a2019775903902622dc80c2231f105e3213f8a60 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 28 Feb 2017 01:40:02 +0100 Subject: Fix for #828: Embed build tags (#1051) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix for #828 Add build tags to ldflags and print in version output Signed-off-by: Jonas Östanbäck * Reworked formatBuiltWith function Signed-off-by: Jonas Östanbäck * Add tags to version information in admin panel Signed-off-by: Jonas Östanbäck * Added new variable for use on admin page. Signed-off-by: Jonas Östanbäck * Fixed incorrect indentation --- modules/setting/setting.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/setting') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index dd06691dc3..bdece17ad4 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -59,6 +59,7 @@ const ( var ( // AppVer settings AppVer string + AppBuiltWith string AppName string AppURL string AppSubURL string @@ -939,7 +940,7 @@ var logLevels = map[string]string{ } func newLogService() { - log.Info("Gitea v%s", AppVer) + log.Info("Gitea v%s%s", AppVer, AppBuiltWith) LogModes = strings.Split(Cfg.Section("log").Key("MODE").MustString("console"), ",") LogConfigs = make([]string, len(LogModes)) -- cgit v1.2.3