Skip to content

Commit 8788bc3

Browse files
authored
Remove direct dependency on github.com/pkg/errors (#497)
1 parent 89e7b95 commit 8788bc3

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

backend/daemon_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
package backend
44

55
import (
6+
"errors"
67
"net"
78
"os"
89
"os/signal"
910
"syscall"
1011

1112
"github.com/coreos/go-systemd/v22/activation"
1213
"github.com/coreos/go-systemd/v22/daemon"
13-
"github.com/pkg/errors"
1414
)
1515

1616
func listenFD(addr string) (net.Listener, error) {

backend/daemon_windows.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
package backend
44

55
import (
6+
"errors"
67
"net"
7-
8-
"github.com/pkg/errors"
98
)
109

1110
func listenFD(addr string) (net.Listener, error) {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ require (
1919
github.com/opencontainers/runc v1.1.12
2020
github.com/opencontainers/runtime-spec v1.2.0
2121
github.com/opencontainers/selinux v1.11.0
22-
github.com/pkg/errors v0.9.1
2322
github.com/sirupsen/logrus v1.9.3
2423
github.com/spf13/cobra v1.8.0
2524
github.com/spf13/pflag v1.0.5
@@ -98,6 +97,7 @@ require (
9897
github.com/morikuni/aec v1.0.0 // indirect
9998
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
10099
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
100+
github.com/pkg/errors v0.9.1 // indirect
101101
github.com/pmezard/go-difflib v1.0.0 // indirect
102102
github.com/prometheus/client_golang v1.16.0 // indirect
103103
github.com/prometheus/client_model v0.4.0 // indirect

0 commit comments

Comments
 (0)