File: noimport_osext.patch

package info (click to toggle)
golang-github-mitchellh-panicwrap 0.0~git20170106.fce601f-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 104 kB
  • sloc: makefile: 2
file content (29 lines) | stat: -rw-r--r-- 667 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Last-Update: 2018-07-05
Forwarded: https://github.com/mitchellh/panicwrap/issues/22
Bug-Upstream: https://github.com/mitchellh/panicwrap/issues/22
Author: Dmitry Smirnov <onlyjob@debian.org>
Description: removed "kardianos/osext" which is obsolete on go-1.8+

--- a/panicwrap.go
+++ b/panicwrap.go
@@ -20,9 +20,8 @@
 	"sync/atomic"
 	"syscall"
 	"time"
 
-	"github.com/kardianos/osext"
 )
 
 const (
 	DEFAULT_COOKIE_KEY = "cccf35992f8f3cd8d1d28f0109dd953e26664531"
@@ -117,9 +116,9 @@
 		return -1, nil
 	}
 
 	// Get the path to our current executable
-	exePath, err := osext.Executable()
+	exePath, err := os.Executable()
 	if err != nil {
 		return -1, err
 	}