build: fix go mod tidy removing golang.org/x/mobile dependency

Before this running `go mod tidy` caused the build to break because it
removed the dependency on golang.org/x/mobile and a command line tool
from this package is needed for the build.

This adds an explicit dependency which will mean the tool is always present.
This commit is contained in:
Nick Craig-Wood
2022-05-01 13:28:20 +01:00
parent deab86867c
commit 94757277bc
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -6,6 +6,8 @@ import (
_ "github.com/rclone/rclone/backend/all" // import all backends
_ "github.com/rclone/rclone/lib/plugin" // import plugins
_ "golang.org/x/mobile/event/key" // make go.mod add this as a dependency
)
// RcloneInitialize initializes rclone as a library