1
yougg 2022-10-16 19:31:47 +08:00
go get github.com/<user>/<repo>@<commit_id>
|
2
wangyu17455 2022-10-16 20:05:39 +08:00
有个不太优雅的办法,删掉本地缓存然后再 get 试试?
|
3
LindsayZhou 2022-10-16 20:06:03 +08:00
GOPROXY=direct get get xxxx
谷歌的缓存,直连就好了。 引申阅读: https://drewdevault.com/2022/05/25/Google-has-been-DDoSing-sourcehut.html |
4
mengyx 2022-10-16 20:25:40 +08:00
建议使用 Go Workspace https://go.dev/doc/tutorial/workspaces
|
6
349865361 2022-10-25 11:39:32 +08:00
go env -w GOPROXY=direct 禁用代理直接从 git 仓库获取
|