Remove patch
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
This commit is contained in:
parent
fcd56d4210
commit
bda9b888c9
|
@ -1,56 +0,0 @@
|
|||
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
|
||||
|
|
@ -39,9 +39,6 @@ URL: %{gourl}
|
|||
Source0: %{gosource}
|
||||
Source1: glide.yaml
|
||||
Source2: glide.lock
|
||||
# Unnecessary in Go 1.8+
|
||||
# https://github.com/bugsnag/panicwrap/issues/9
|
||||
Patch0001: 0001-Remove-kardianos-osext.patch
|
||||
|
||||
%description
|
||||
%{common_description}
|
||||
|
@ -50,7 +47,6 @@ Patch0001: 0001-Remove-kardianos-osext.patch
|
|||
|
||||
%prep
|
||||
%goprep
|
||||
%patch0001 -p1
|
||||
cp %{S:1} %{S:2} .
|
||||
|
||||
%install
|
||||
|
|
Loading…
Reference in New Issue