aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater/versions.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-29 16:16:48 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-30 08:47:21 -0600
commitb70b012bc692477fdf51b09627c6a7333265ee31 (patch)
tree18badadf8bdf1b77b93932b947a352e5591ddf2b /updater/versions.go
parentversion: use ProductName and ProductVersion as strings (diff)
downloadwireguard-windows-b70b012bc692477fdf51b09627c6a7333265ee31.tar.xz
wireguard-windows-b70b012bc692477fdf51b09627c6a7333265ee31.zip
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 <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--updater/versions.go3
1 files changed, 1 insertions, 2 deletions
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")
}