aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater
diff options
context:
space:
mode:
Diffstat (limited to 'updater')
-rw-r--r--updater/downloader.go5
-rw-r--r--updater/msirunner_windows.go5
-rw-r--r--updater/signify.go3
-rw-r--r--updater/versions.go3
4 files changed, 10 insertions, 6 deletions
diff --git a/updater/downloader.go b/updater/downloader.go
index 88931d61..f9b70834 100644
--- a/updater/downloader.go
+++ b/updater/downloader.go
@@ -9,13 +9,14 @@ import (
"crypto/hmac"
"errors"
"fmt"
- "golang.org/x/crypto/blake2b"
- "golang.zx2c4.com/wireguard/windows/version"
"hash"
"io"
"net/http"
"os"
"sync/atomic"
+
+ "golang.org/x/crypto/blake2b"
+ "golang.zx2c4.com/wireguard/windows/version"
)
type DownloadProgress struct {
diff --git a/updater/msirunner_windows.go b/updater/msirunner_windows.go
index 1ea405f4..92fd4e0e 100644
--- a/updater/msirunner_windows.go
+++ b/updater/msirunner_windows.go
@@ -9,14 +9,15 @@ import (
"crypto/rand"
"encoding/hex"
"errors"
- "github.com/Microsoft/go-winio"
- "golang.org/x/sys/windows"
"os"
"os/exec"
"path"
"runtime"
"syscall"
"unsafe"
+
+ "github.com/Microsoft/go-winio"
+ "golang.org/x/sys/windows"
)
func runMsi(msiPath string, userToken uintptr) error {
diff --git a/updater/signify.go b/updater/signify.go
index 5fc16ba2..8a62f4af 100644
--- a/updater/signify.go
+++ b/updater/signify.go
@@ -10,9 +10,10 @@ import (
"encoding/base64"
"encoding/hex"
"errors"
+ "strings"
+
"golang.org/x/crypto/blake2b"
"golang.org/x/crypto/ed25519"
- "strings"
)
/*
diff --git a/updater/versions.go b/updater/versions.go
index 3d1fd38f..6ff73391 100644
--- a/updater/versions.go
+++ b/updater/versions.go
@@ -8,10 +8,11 @@ package updater
import (
"errors"
"fmt"
- "golang.zx2c4.com/wireguard/windows/version"
"runtime"
"strconv"
"strings"
+
+ "golang.zx2c4.com/wireguard/windows/version"
)
func versionNewerThanUs(candidate string) (bool, error) {