golang-github-bugsnag-panic.../0001-Remove-kardianos-osext.patch
2019-07-13 05:05:53 -04:00

57 lines
1.2 KiB
Diff

From 9660bf7fc9d7d29b96fef2fa7e829b845d17cd35 Mon Sep 17 00:00:00 2001
From: Dmitry Smirnov <onlyjob@raid6.com.au>
Date: Wed, 4 Jul 2018 05:35:32 +0000
Subject: [PATCH] Remove kardianos/osext.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
monitor.go | 3 +--
panicwrap.go | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/monitor.go b/monitor.go
index 1bb27e8..3e7b945 100644
--- a/monitor.go
+++ b/monitor.go
@@ -3,7 +3,6 @@
package panicwrap
import (
- "github.com/kardianos/osext"
"os"
"os/exec"
)
@@ -29,7 +28,7 @@ func monitor(c *WrapConfig) (int, error) {
os.Exit(0)
}
- exePath, err := osext.Executable()
+ exePath, err := os.Executable()
if err != nil {
return -1, err
}
diff --git a/panicwrap.go b/panicwrap.go
index 7a7fe29..315f0e3 100644
--- a/panicwrap.go
+++ b/panicwrap.go
@@ -12,7 +12,6 @@ package panicwrap
import (
"bytes"
"errors"
- "github.com/kardianos/osext"
"io"
"os"
"os/exec"
@@ -143,7 +142,7 @@ func wrap(c *WrapConfig) (int, error) {
}
// Get the path to our current executable
- exePath, err := osext.Executable()
+ exePath, err := os.Executable()
if err != nil {
return -1, err
}
--
2.21.0