gdrive
gdrive copied to clipboard
go get github.com/prasmussen/gdrive , error
go get github.com/prasmussen/gdrive , error
[root@p ~]# go get github.com/prasmussen/gdrive
go: downloading github.com/prasmussen/gdrive v0.0.0-20210528224146-fb08fe2ff9c0
go: downloading github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
go: downloading github.com/soniakeys/graph v0.0.0
go: downloading golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
go: downloading golang.org/x/net v0.0.0-20220418201149-a630d4f3e7a2
go: downloading google.golang.org/api v0.74.0
go get: google.golang.org/api@none updating to
google.golang.org/[email protected] requires
github.com/google/[email protected] requires
golang.org/x/[email protected]: invalid version: git fetch --unshallow -f origin in /root/go/pkg/mod/cache/vcs/e8cbb9fcbcd0d26d8c9a3b58f621a8129147a3b347856e391df04e0a9554a4ed: exit status 128:
fatal: git fetch-pack: expected shallow list
what is your go version? Can be found with go version
go build github.com/prasmussen/gdrive@latest
go build github.com/prasmussen/gdrive@latest
package github.com/prasmussen/gdrive@latest: can only use path@version syntax with 'go get' and 'go install' in module-aware mode