From be38da5c0191adb77f661f769ffff2fbc7ddf6cd Mon Sep 17 00:00:00 2001 From: Vincent Cheung <71457708+vcheung-stripe@users.noreply.github.com> Date: Wed, 16 Feb 2022 13:56:25 -0800 Subject: [PATCH] replace exec package (#820) --- pkg/config/config.go | 3 ++- pkg/open/open.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index f4b7527c..11fcb147 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -5,12 +5,13 @@ import ( "fmt" "io/ioutil" "os" - "os/exec" "path/filepath" "runtime" "strings" "time" + exec "golang.org/x/sys/execabs" + "github.com/BurntSushi/toml" "github.com/mitchellh/go-homedir" log "github.com/sirupsen/logrus" diff --git a/pkg/open/open.go b/pkg/open/open.go index e1e70659..9f3ce123 100644 --- a/pkg/open/open.go +++ b/pkg/open/open.go @@ -2,8 +2,9 @@ package open import ( "fmt" - "os/exec" "runtime" + + exec "golang.org/x/sys/execabs" ) var execCommand = exec.Command