"kardianos/osext" is obsolete on go-1.8+
onlyjob opened this issue · 1 comments
onlyjob commented
The following patch allows to remove redundant github.com/kardianos/osext
dependency:
--- a/appended.go
+++ b/appended.go
@@ -8,9 +8,8 @@
"strings"
"time"
"github.com/daaku/go.zipexe"
- "github.com/kardianos/osext"
)
// appendedBox defines an appended box
type appendedBox struct {
@@ -30,9 +29,9 @@
var appendedBoxes = make(map[string]*appendedBox)
func init() {
// find if exec is appended
- thisFile, err := osext.Executable()
+ thisFile, err := os.Executable()
if err != nil {
return // not appended or cant find self executable
}
closer, rd, err := zipexe.OpenCloser(thisFile)
GeertJohan commented
Thanks, have merged the change.