all: use x/sys/execabs instead of os/exec

Closes #2418
This commit is contained in:
Hajime Hoshi
2022-11-01 23:07:16 +09:00
parent 083835af9a
commit 8aacf067dd
5 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -23,10 +23,10 @@ import (
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
exec "golang.org/x/sys/execabs"
"golang.org/x/tools/go/packages"
)
+1 -1
View File
@@ -18,13 +18,13 @@ import (
_ "embed"
"fmt"
"os"
"os/exec"
"path/filepath"
"runtime"
"runtime/debug"
// Add a dependency on gomobile in order to get the version via debug.ReadBuildInfo().
_ "golang.org/x/mobile/geom"
exec "golang.org/x/sys/execabs"
)
//go:embed gobind.go
+1 -1
View File
@@ -25,11 +25,11 @@ import (
"fmt"
"log"
"os"
"os/exec"
"path/filepath"
"strings"
"text/template"
exec "golang.org/x/sys/execabs"
"golang.org/x/tools/go/packages"
)