aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater/versions_default.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-21 23:13:19 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-22 22:00:32 +0100
commitcfde14234176b750da47890866f3d1023aa2e3a5 (patch)
tree1cd1ac5bbad938ddc78465264f72d45723a28fe7 /updater/versions_default.go
parentconf: always use 64-bit registry view on 64-bit machines (diff)
downloadwireguard-windows-cfde14234176b750da47890866f3d1023aa2e3a5.tar.xz
wireguard-windows-cfde14234176b750da47890866f3d1023aa2e3a5.zip
version: unify architecture string handling
Always report native architecture and use "x86" instead of "386" for all identification strings, except when explicitly stating the Go verison. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--updater/versions_default.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/updater/versions_default.go b/updater/versions_default.go
deleted file mode 100644
index 268e97ce..00000000
--- a/updater/versions_default.go
+++ /dev/null
@@ -1,28 +0,0 @@
-// +build !arm
-
-/* SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2019-2020 WireGuard LLC. All Rights Reserved.
- */
-
-package updater
-
-import (
- "errors"
- "runtime"
-)
-
-func findArch() (arch string, err error) {
- if runtime.GOARCH == "amd64" {
- arch = "amd64"
- } else if runtime.GOARCH == "386" {
- arch = "x86"
- } else if runtime.GOARCH == "arm" {
- arch = "arm"
- } else if runtime.GOARCH == "arm64" {
- arch = "arm64"
- } else {
- err = errors.New("Invalid GOARCH")
- }
- return
-}