在开发两个库,都在 github 上,一个依赖于另一个。
被依赖的库更新快半小时了,github 网页上也早看到了更新,本地 go get -u -v 还是什么都没有
被依赖的库更新快半小时了,github 网页上也早看到了更新,本地 go get -u -v 还是什么都没有
1
yougg Oct 16, 2022
go get github.com/<user>/<repo>@<commit_id>
|
2
wangyu17455 Oct 16, 2022
有个不太优雅的办法,删掉本地缓存然后再 get 试试?
|
3
LindsayZhou Oct 16, 2022
GOPROXY=direct get get xxxx
谷歌的缓存,直连就好了。 引申阅读: https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html |
4
mengyx Oct 16, 2022
建议使用 Go Workspace https://go.dev/doc/tutorial/workspaces
|
6
349865361 Oct 25, 2022
go env -w GOPROXY=direct 禁用代理直接从 git 仓库获取
|