Skip to content

Commit 39e72b4

Browse files
committed
Update go-windows-runas to v1.0.3 and fix RunElevated usage
1 parent 892d082 commit 39e72b4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.25
44

55
require (
66
github.com/arduino/go-paths-helper v1.14.0
7-
github.com/arduino/go-windows-runas v1.0.2
7+
github.com/arduino/go-windows-runas v1.0.3-0.20251215135657-89d451066b12
88
github.com/codeclysm/extract/v4 v4.0.0
99
github.com/stretchr/testify v1.11.1
1010
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFI
1919
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
2020
github.com/arduino/go-paths-helper v1.14.0 h1:b4C8KJa7CNz2XnzTWg97M3LAmzWSWrj+m/o5/skzv3Y=
2121
github.com/arduino/go-paths-helper v1.14.0/go.mod h1:dDodKn2ZX4iwuoBMapdDO+5d0oDLBeM4BS0xS4i40Ak=
22-
github.com/arduino/go-windows-runas v1.0.2 h1:V3DgEoYVB/YVV1Gt3cwyPUni+ECMRmW2cfvDnuXjGfo=
23-
github.com/arduino/go-windows-runas v1.0.2/go.mod h1:TROWwczwunKIVqvGVBXPDD7P1YLzNQyuKbt2IQNQU58=
22+
github.com/arduino/go-windows-runas v1.0.3-0.20251215135657-89d451066b12 h1:Qu63G1YOfoPPxPTb3S8YxNkuZxMWnSLFD3XtgWdi81U=
23+
github.com/arduino/go-windows-runas v1.0.3-0.20251215135657-89d451066b12/go.mod h1:TROWwczwunKIVqvGVBXPDD7P1YLzNQyuKbt2IQNQU58=
2424
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
2525
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
2626
github.com/chainguard-dev/git-urls v1.0.2 h1:pSpT7ifrpc5X55n4aTTm7FFUE+ZQHKiqpiwNkJrVcKQ=

updater/exec_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
)
2525

2626
func execApp(path string) error {
27-
exitCode, err := runas.RunElevated(path, "", []string{}, false)
27+
exitCode, err := runas.RunElevated(path, "", []string{}, false, false)
2828
if err != nil {
2929
return fmt.Errorf("could not run installer: %w", err)
3030
}

0 commit comments

Comments
 (0)