Skip to content

Commit f8bed98

Browse files
authored
[release/0.3] Update package for "errors" compatible with modern Go version (#515)
1 parent e2a9b15 commit f8bed98

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

backend/daemon_unix.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
//go:build !windows
12
// +build !windows
23

34
package backend
45

56
import (
7+
"errors"
68
"net"
79
"os"
810
"os/signal"
911
"syscall"
1012

1113
"github.com/coreos/go-systemd/v22/activation"
1214
"github.com/coreos/go-systemd/v22/daemon"
13-
"github.com/pkg/errors"
1415
)
1516

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

backend/daemon_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
//go:build windows
12
// +build windows
23

34
package backend
45

56
import (
7+
"errors"
68
"net"
7-
8-
"github.com/pkg/errors"
99
)
1010

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

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ require (
1717
github.com/opencontainers/go-digest v1.0.0
1818
github.com/opencontainers/image-spec v1.1.1
1919
github.com/opencontainers/runc v1.2.6
20-
github.com/pkg/errors v0.9.1
2120
github.com/sirupsen/logrus v1.9.3
2221
github.com/spf13/cobra v1.8.0
2322
github.com/spf13/pflag v1.0.5
@@ -97,6 +96,7 @@ require (
9796
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
9897
github.com/opencontainers/runtime-spec v1.2.0 // indirect
9998
github.com/opencontainers/selinux v1.11.0 // indirect
99+
github.com/pkg/errors v0.9.1 // indirect
100100
github.com/pmezard/go-difflib v1.0.0 // indirect
101101
github.com/prometheus/client_golang v1.16.0 // indirect
102102
github.com/prometheus/client_model v0.4.0 // indirect

0 commit comments

Comments
 (0)