Skip to content

Commit

Permalink
build: Remove external dependency osext.
Browse files Browse the repository at this point in the history
Its functionality is now available in standard library as of Go 1.8.
See kardianos/osext#20.
  • Loading branch information
dmitshur committed Feb 16, 2017
1 parent 8980111 commit ad3bc12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"github.com/fsnotify/fsnotify"
"github.com/gopherjs/gopherjs/compiler"
"github.com/gopherjs/gopherjs/compiler/natives"
"github.com/kardianos/osext"
"github.com/neelance/sourcemap"
)

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

if pkg.PkgObj != "" {
var fileInfo os.FileInfo
gopherjsBinary, err := osext.Executable()
gopherjsBinary, err := os.Executable()
if err == nil {
fileInfo, err = os.Stat(gopherjsBinary)
if err == nil {
Expand Down

0 comments on commit ad3bc12

Please sign in to comment.