From b70b012bc692477fdf51b09627c6a7333265ee31 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 29 Aug 2019 16:16:48 -0600 Subject: version: hard code name and version at compile time We really do want the true name and version in logs so that external consumers have a good reference point for helping us debug. We can then do the log file directory explicitly. Signed-off-by: Jason A. Donenfeld --- updater/versions.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'updater/versions.go') diff --git a/updater/versions.go b/updater/versions.go index 7292ce7e..72f90240 100644 --- a/updater/versions.go +++ b/updater/versions.go @@ -17,8 +17,7 @@ import ( func versionNewerThanUs(candidate string) (bool, error) { candidateParts := strings.Split(candidate, ".") - _, ver := version.RunningNameVersion() - ourParts := strings.Split(ver, ".") + ourParts := strings.Split(version.Number, ".") if len(candidateParts) == 0 || len(ourParts) == 0 { return false, errors.New("Empty version") } -- cgit v1.2.3-59-g8ed1b