dropbox / dbxcli

A command line client for Dropbox built using the Go SDK
Other
1.05k stars 100 forks source link

go get github.com/dropbox/dbxcli cannot find module providing package #193

Open ashhulme opened 2 years ago

ashhulme commented 2 years ago

getting the below errors when running the following command

root@:~/go# go get github.com/dropbox/dbxcli

github.com/dropbox/dbxcli imports github.com/dropbox/dropbox-sdk-go-unofficial/dropbox: cannot find module providing package github.com/dropbox/dropbox-sdk-go-unofficial/dropbox github.com/dropbox/dbxcli imports github.com/dropbox/dbxcli/cmd imports github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth: cannot find module providing package github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/auth github.com/dropbox/dbxcli imports github.com/dropbox/dbxcli/cmd imports github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files: cannot find module providing package github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/files github.com/dropbox/dbxcli imports github.com/dropbox/dbxcli/cmd imports github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing: cannot find module providing package github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/sharing github.com/dropbox/dbxcli imports github.com/dropbox/dbxcli/cmd imports github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team: cannot find module providing package github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/team github.com/dropbox/dbxcli imports github.com/dropbox/dbxcli/cmd imports github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users: cannot find module providing package github.com/dropbox/dropbox-sdk-go-unofficial/dropbox/users

cameron314 commented 9 months ago

Looks like dropbox/dropbox-sdk-go-unofficial moved its modules to a v6 subfolder. dbxcli was updated on master but not released. Try go get github.com/dropbox/dbxcli@master.

EDIT: go get github.com/dropbox/dbxcli@master works to install the dependencies, but not the actual (writable) source code. For that I ended up cloning the repository separately, editing cmd/root.go, then running go build.