mirror of
https://github.com/rclone/rclone.git
synced 2025-06-20 03:37:50 +02:00
backend: Split backends which use the vfs into a seperate file
This is so that the VFS tests can use the backends but not cause an import loop.
This commit is contained in:
parent
578b9df6ea
commit
65d1e5d47e
4
backend/usevfs/usevfs.go
Normal file
4
backend/usevfs/usevfs.go
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
// Package all imports all the backends which use the VFS as part of
|
||||||
|
// their implementation these can't be imported by the VFS so need to
|
||||||
|
// be mentioned in here, not backend/all.
|
||||||
|
package all
|
@ -5,6 +5,7 @@ import (
|
|||||||
"github.com/rclone/rclone/librclone/librclone"
|
"github.com/rclone/rclone/librclone/librclone"
|
||||||
|
|
||||||
_ "github.com/rclone/rclone/backend/all" // import all backends
|
_ "github.com/rclone/rclone/backend/all" // import all backends
|
||||||
|
_ "github.com/rclone/rclone/backend/usevfs" // import all backends which use the VFS
|
||||||
_ "github.com/rclone/rclone/lib/plugin" // import plugins
|
_ "github.com/rclone/rclone/lib/plugin" // import plugins
|
||||||
|
|
||||||
_ "golang.org/x/mobile/event/key" // make go.mod add this as a dependency
|
_ "golang.org/x/mobile/event/key" // make go.mod add this as a dependency
|
||||||
|
@ -35,6 +35,7 @@ import (
|
|||||||
"github.com/rclone/rclone/librclone/librclone"
|
"github.com/rclone/rclone/librclone/librclone"
|
||||||
|
|
||||||
_ "github.com/rclone/rclone/backend/all" // import all backends
|
_ "github.com/rclone/rclone/backend/all" // import all backends
|
||||||
|
_ "github.com/rclone/rclone/backend/usevfs" // import all backends which use the VFS
|
||||||
_ "github.com/rclone/rclone/cmd/cmount" // import cmount
|
_ "github.com/rclone/rclone/cmd/cmount" // import cmount
|
||||||
_ "github.com/rclone/rclone/cmd/mount" // import mount
|
_ "github.com/rclone/rclone/cmd/mount" // import mount
|
||||||
_ "github.com/rclone/rclone/cmd/mount2" // import mount2
|
_ "github.com/rclone/rclone/cmd/mount2" // import mount2
|
||||||
|
@ -5,6 +5,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/rclone/rclone/backend/all" // import all backends
|
_ "github.com/rclone/rclone/backend/all" // import all backends
|
||||||
|
_ "github.com/rclone/rclone/backend/usevfs" // import all backends which use the VFS
|
||||||
"github.com/rclone/rclone/cmd"
|
"github.com/rclone/rclone/cmd"
|
||||||
_ "github.com/rclone/rclone/cmd/all" // import all commands
|
_ "github.com/rclone/rclone/cmd/all" // import all commands
|
||||||
_ "github.com/rclone/rclone/lib/plugin" // import plugins
|
_ "github.com/rclone/rclone/lib/plugin" // import plugins
|
||||||
|
Loading…
x
Reference in New Issue
Block a user