updated inconshreveable/go-update to get new import location of kardianos/osext
Henry committed
Feb 24, 2015 at 00:27 UTC
59402803beaa7c4aa0e94f5dec7ffc2355d1e012
11 files changed
+26
-17
Godeps/Godeps.json
+5
-6
@@ -9,11 +9,6 @@
9
"ImportPath": "bazil.org/fuse",
10
"Rev": "d62a1291477b51b24becf4def173bd843138c4b6"
11
},
12
- {
13
- "ImportPath": "bitbucket.org/kardianos/osext",
14
- "Comment": "null-15",
15
- "Rev": "44140c5fc69ecf1102c5ef451d73cd98ef59b178"
16
- },
12
{
13
"ImportPath": "code.google.com/p/go-uuid/uuid",
14
"Comment": "null-12",
@@ -139,7 +134,7 @@
134
},
135
{
136
"ImportPath": "github.com/inconshreveable/go-update",
142
- "Rev": "221d034a558b4c21b0624b2a450c076913854a57"
137
+ "Rev": "68f5725818189545231c1fd8694793d45f2fc529"
138
},
139
{
140
"ImportPath": "github.com/jackpal/go-nat-pmp",
@@ -211,6 +206,10 @@
206
"ImportPath": "github.com/jbenet/goprocess",
207
"Rev": "b4efc4c8775f0250710b39bfa716276ca10f85af"
208
},
209
+ {
210
+ "ImportPath": "github.com/kardianos/osext",
211
+ "Rev": "ccfcd0245381f0c94c68f50626665eed3c6b726a"
212
+ },
213
{
214
"ImportPath": "github.com/kr/binarydist",
215
"Rev": "9955b0ab8708602d411341e55fffd7e0700f86bd"
Godeps/_workspace/src/github.com/inconshreveable/go-update/check/check.go
+1
-1
@@ -10,8 +10,8 @@ import (
10
"net/http"
11
"runtime"
12
13
- "github.com/jbenet/go-ipfs/Godeps/_workspace/src/bitbucket.org/kardianos/osext"
13
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update"
14
+ "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/kardianos/osext"
15
)
16
17
type Initiative string
Godeps/_workspace/src/github.com/inconshreveable/go-update/update.go
+4
-3
@@ -113,7 +113,6 @@ while outputting a progress meter and supports resuming partial downloads.
113
package update
114
115
import (
116
- "github.com/jbenet/go-ipfs/Godeps/_workspace/src/bitbucket.org/kardianos/osext"
116
"bytes"
117
"crypto"
118
"crypto/rsa"
@@ -122,12 +121,14 @@ import (
121
"crypto/x509"
122
"encoding/pem"
123
"fmt"
125
- "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/download"
126
- "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/kr/binarydist"
124
"io"
125
"io/ioutil"
126
"os"
127
"path/filepath"
128
+
129
+ "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/inconshreveable/go-update/download"
130
+ "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/kardianos/osext"
131
+ "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/kr/binarydist"
132
)
133
134
// The type of a binary patch, if any. Only bsdiff is supported
Godeps/_workspace/src/github.com/kardianos/osext/LICENSE
renamed
Godeps/_workspace/src/github.com/kardianos/osext/README.md
new
+14
@@ -0,0 +1,14 @@
1
+### Extensions to the "os" package.
2
+
3
+## Find the current Executable and ExecutableFolder.
4
+
5
+There is sometimes utility in finding the current executable file
6
+that is running. This can be used for upgrading the current executable
7
+or finding resources located relative to the executable file.
8
+
9
+Multi-platform and supports:
10
+ * Linux
11
+ * OS X
12
+ * Windows
13
+ * Plan 9
14
+ * BSDs.
Godeps/_workspace/src/github.com/kardianos/osext/osext.go
renamed
-5
@@ -25,8 +25,3 @@ func ExecutableFolder() (string, error) {
25
folder, _ := filepath.Split(p)
26
return folder, nil
27
}
28
-
29
-// Depricated. Same as Executable().
30
-func GetExePath() (exePath string, err error) {
31
- return Executable()
32
-}
Godeps/_workspace/src/github.com/kardianos/osext/osext_plan9.go
renamed
Godeps/_workspace/src/github.com/kardianos/osext/osext_procfs.go
renamed
+2
-2
@@ -2,7 +2,7 @@
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
-// +build linux netbsd openbsd solaris
5
+// +build linux netbsd openbsd solaris dragonfly
6
7
package osext
8
@@ -19,7 +19,7 @@ func executable() (string, error) {
19
return os.Readlink("/proc/self/exe")
20
case "netbsd":
21
return os.Readlink("/proc/curproc/exe")
22
- case "openbsd":
22
+ case "openbsd", "dragonfly":
23
return os.Readlink("/proc/curproc/file")
24
case "solaris":
25
return os.Readlink(fmt.Sprintf("/proc/%d/path/a.out", os.Getpid()))