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:
parent
deab86867c
commit
94757277bc
2 changed files with 3 additions and 0 deletions
1
go.mod
1
go.mod
|
@ -132,6 +132,7 @@ require (
|
||||||
github.com/golang-jwt/jwt/v4 v4.1.0 // indirect
|
github.com/golang-jwt/jwt/v4 v4.1.0 // indirect
|
||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/google/go-querystring v1.1.0 // indirect
|
github.com/google/go-querystring v1.1.0 // indirect
|
||||||
|
golang.org/x/mobile v0.0.0-20220414153400-ce6a79cf6a13
|
||||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
|
||||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,6 +6,8 @@ import (
|
||||||
|
|
||||||
_ "github.com/rclone/rclone/backend/all" // import all backends
|
_ "github.com/rclone/rclone/backend/all" // import all backends
|
||||||
_ "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
|
||||||
)
|
)
|
||||||
|
|
||||||
// RcloneInitialize initializes rclone as a library
|
// RcloneInitialize initializes rclone as a library
|
||||||
|
|
Loading…
Reference in a new issue