prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.18k forks source link

go get github.com/prasmussen/gdrive , error #624

Open egphp opened 2 years ago

egphp commented 2 years ago

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/api@v0.74.0 requires
    github.com/google/go-cmp@v0.5.7 requires
    golang.org/x/xerrors@v0.0.0-20191204190536-9bdfabe68543: 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
insanity54 commented 2 years ago

what is your go version? Can be found with go version

wendellouyang commented 2 years ago
go build github.com/prasmussen/gdrive@latest
egphp commented 2 years ago
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