Replace golang.org/x/net/context with std library

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
Shengjing Zhu
2022-02-22 02:15:03 +08:00
parent d128c3767b
commit f4f41296c2
62 changed files with 68 additions and 71 deletions

View File

@@ -17,6 +17,7 @@
package io
import (
"context"
"io"
"os"
"path/filepath"
@@ -24,7 +25,6 @@ import (
"syscall"
"github.com/containerd/containerd/cio"
"golang.org/x/net/context"
runtime "k8s.io/cri-api/pkg/apis/runtime/v1"
)

View File

@@ -20,11 +20,11 @@
package io
import (
"context"
"io"
"os"
"github.com/containerd/fifo"
"golang.org/x/net/context"
)
func openPipe(ctx context.Context, fn string, flag int, perm os.FileMode) (io.ReadWriteCloser, error) {

View File

@@ -17,6 +17,7 @@
package io
import (
"context"
"fmt"
"io"
"net"
@@ -24,7 +25,6 @@ import (
"sync"
winio "github.com/Microsoft/go-winio"
"golang.org/x/net/context"
)
type pipe struct {