go mod tidy报错
来源:2-5 cap-tool 代码目录生成 & proto 文件生成

DQwancheng
2024-01-01
报错内容
- 报错信息:
go: git.imooc.com/coding-535/common@v0.0.0-20220913123407-af94ee6eb5c3 requires
github.com/asim/go-micro/v3@v3.6.0 requires
github.com/micro/cli/v2@v2.1.2: reading github.com/micro/cli/go.mod at revision v2.1.2: git ls-remote -q origin in D:\Program Files\Go\bin\pkg\mod\cache\vcs\2f5431eb5439e9d79f82a6d853348656f17b78125db9eda81300bc014d0f0a5d: 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.
go: downloading git.imooc.com/coding-535/common v0.0.0-20220913123407-af94ee6eb5c3
go: git.imooc.com/coding-535/common@v0.0.0-20220913123407-af94ee6eb5c3 requires
github.com/asim/go-micro/v3@v3.6.0 requires
github.com/micro/cli/v2@v2.1.2: reading github.com/micro/cli/go.mod at revision v2.1.2: git ls-remote -q origin in D:\Program Files\Go\bin\pkg\mod\cache\vcs\2f5431eb5439e9d79f82a6d853348656f17b78125db9eda81300bc014d0f0a5d: 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.
- 然后这个网页:https://github.com/micro/cli/v2 404了
请问一下老师这个有啥解决办法吗
写回答
1回答
-
Cap
2024-01-24
把老师课程里的代码下载过去,把 go.mod 里面的依赖改下试试一般不回用到 这个 cli
00
相似问题