dbxcli icon indicating copy to clipboard operation
dbxcli copied to clipboard

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

Open ashhulme opened this issue 3 years ago • 2 comments

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

ashhulme avatar Jul 01 '22 08:07 ashhulme

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.

cameron314 avatar Jan 01 '24 23:01 cameron314