执行 go mod tidy 报错
go: finding module for package github.com/qiniu/rpc
go: finding module for package github.com/qiniu/bytes/seekable
github.com/studygolang/studygolang/logic imports
github.com/qiniu/api.v6/conf imports
github.com/qiniu/rpc: cannot find module providing package github.com/qiniu/rpc: module github.com/qiniu/rpc: git ls-remote -q origin in E:\GOPATH\pkg\mod\cache
vcs\d83276858bc4e50f47255ca8de2bab88f57cf0626d77e30539152c9794dd8629: exit status 128:
fatal: Cannot prompt because user interactivity has been disabled.
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
github.com/studygolang/studygolang/logic imports
github.com/qiniu/api.v6/rs imports
github.com/qiniu/api.v6/auth/digest imports
github.com/qiniu/bytes/seekable: cannot find module providing package github.com/qiniu/bytes/seekable: module
github.com/qiniu/bytes/seekable: git ls-remote -q o
rigin in E:\GOPATH\pkg\mod\cache\vcs\9343a7564bb508f7f517b255feef5381fea307ce6fb5426727e018b089363563: exit status 128:
fatal: Cannot prompt because user interactivity has been disabled.
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
```
github.com/studygolang/studygolang/logic imports github.com/qiniu/api.v6/conf imports github.com/qiniu/rpc: cannot find module
```
提示很明显的,github.com/qiniu/rpc 这个库没了,把相关代码删除试试。
#1
更多评论