Skip to content

Commit 311f6ab

Browse files
committed
build: Remove external dependency osext.
Its functionality is now available in standard library as of Go 1.8. See kardianos/osext#20.
1 parent bde0bee commit 311f6ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build/build.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"github.com/fsnotify/fsnotify"
2222
"github.com/gopherjs/gopherjs/compiler"
2323
"github.com/gopherjs/gopherjs/compiler/natives"
24-
"github.com/kardianos/osext"
2524
"github.com/neelance/sourcemap"
2625
)
2726

@@ -488,7 +487,7 @@ func (s *Session) BuildPackage(pkg *PackageData) (*compiler.Archive, error) {
488487

489488
if pkg.PkgObj != "" {
490489
var fileInfo os.FileInfo
491-
gopherjsBinary, err := osext.Executable()
490+
gopherjsBinary, err := os.Executable()
492491
if err == nil {
493492
fileInfo, err = os.Stat(gopherjsBinary)
494493
if err == nil {

0 commit comments

Comments
 (0)