diff options
author | Igor Wiedler <iwiedler@gitlab.com> | 2020-04-27 19:01:09 +0300 |
---|---|---|
committer | Igor Wiedler <iwiedler@gitlab.com> | 2020-04-27 19:01:09 +0300 |
commit | b0cb05d06af0febd485e0c15a3a71f610d91cb45 (patch) | |
tree | 051b3bc982a0050e54ebef9848abfb345d54c454 | |
parent | 1ed3180b610563430d3a51db3659f45205687aab (diff) |
app is in main package, no need to pass VERSION through
-rw-r--r-- | app.go | 2 | ||||
-rw-r--r-- | app_config.go | 2 | ||||
-rw-r--r-- | main.go | 2 |
3 files changed, 1 insertions, 5 deletions
@@ -439,7 +439,7 @@ func (a *theApp) listenMetricsFD(wg *sync.WaitGroup, fd uintptr) { } monitoringOpts := []monitoring.Option{ - monitoring.WithBuildInformation(a.Version, ""), + monitoring.WithBuildInformation(VERSION, ""), monitoring.WithListener(l), } diff --git a/app_config.go b/app_config.go index a39067a6..245a9e0d 100644 --- a/app_config.go +++ b/app_config.go @@ -38,8 +38,6 @@ type appConfig struct { SentryDSN string SentryEnvironment string CustomHeaders []string - - Version string } // GitlabServerURL returns URL to a GitLab instance. @@ -239,8 +239,6 @@ func loadConfig() appConfig { initErrorReporting(config.SentryDSN, config.SentryEnvironment) } - config.Version = VERSION - log.WithFields(log.Fields{ "artifacts-server": *artifactsServer, "artifacts-server-timeout": *artifactsServerTimeout, |