diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-29 16:16:48 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-30 08:47:21 -0600 |
commit | a423506252312b2affff59334d36ad6c5471d013 (patch) | |
tree | 18badadf8bdf1b77b93932b947a352e5591ddf2b /updater | |
parent | version: use ProductName and ProductVersion as strings (diff) | |
download | wireguard-windows-a423506252312b2affff59334d36ad6c5471d013.tar.xz wireguard-windows-a423506252312b2affff59334d36ad6c5471d013.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.
Diffstat (limited to 'updater')
-rw-r--r-- | updater/versions.go | 3 |
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") } |