mirror of
https://github.com/kopia/kopia.git
synced 2025-12-23 22:57:50 -05:00
build(deps): use stdlib context package (#5001)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
package fusemount
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"os"
|
||||
"sync"
|
||||
@@ -14,7 +15,6 @@
|
||||
gofusefs "github.com/hanwen/go-fuse/v2/fs"
|
||||
"github.com/hanwen/go-fuse/v2/fuse"
|
||||
"github.com/pkg/errors"
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/kopia/kopia/fs"
|
||||
"github.com/kopia/kopia/repo/logging"
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
package webdavmount
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/net/webdav"
|
||||
|
||||
"github.com/kopia/kopia/fs"
|
||||
@@ -26,7 +26,7 @@
|
||||
type webdavFile struct {
|
||||
// webdavFile implements webdav.File but needs context
|
||||
// +checklocks:mu
|
||||
ctx context.Context
|
||||
ctx context.Context //nolint:containedctx
|
||||
|
||||
entry fs.File
|
||||
|
||||
@@ -100,7 +100,7 @@ func (f *webdavFile) Close() error {
|
||||
|
||||
type webdavDir struct {
|
||||
// webdavDir implements webdav.File but needs context
|
||||
ctx context.Context
|
||||
ctx context.Context //nolint:containedctx
|
||||
|
||||
w *webdavFS
|
||||
info os.FileInfo
|
||||
|
||||
Reference in New Issue
Block a user