Update kardianos/osext (fixes #2650)

This commit is contained in:
Jakob Borg 2016-01-03 19:59:56 +01:00
parent 18ae87962d
commit adb1227b2e
3 changed files with 3 additions and 5 deletions

2
Godeps/Godeps.json generated
View File

@ -31,7 +31,7 @@
},
{
"ImportPath": "github.com/kardianos/osext",
"Rev": "431e263e413efe4446ede50cec4819b26659fbe7"
"Rev": "29ae4ffbc9a6fe9fb2bc5029050ce6996ea1d3bc"
},
{
"ImportPath": "github.com/rcrowley/go-metrics",

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build linux netbsd solaris dragonfly freebsd
// +build linux netbsd solaris dragonfly
package osext
@ -27,8 +27,6 @@ func executable() (string, error) {
return execpath, nil
case "netbsd":
return os.Readlink("/proc/curproc/exe")
case "freebsd":
return os.Readlink("/proc/curproc/file")
case "dragonfly":
return os.Readlink("/proc/curproc/file")
case "solaris":

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin openbsd
// +build darwin freebsd openbsd
package osext