Skip to content

Commit 9cdaa27

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 84473c1 commit 9cdaa27

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

@@ -483,7 +482,7 @@ func (s *Session) BuildPackage(pkg *PackageData) (*compiler.Archive, error) {
483482

484483
if pkg.PkgObj != "" {
485484
var fileInfo os.FileInfo
486-
gopherjsBinary, err := osext.Executable()
485+
gopherjsBinary, err := os.Executable()
487486
if err == nil {
488487
fileInfo, err = os.Stat(gopherjsBinary)
489488
if err == nil {

0 commit comments

Comments
 (0)