进行依赖的错误,产生EOF
我刚刚收到一台带有 Win 的新笔记本(21H2 build 19044.1415)并尝试安装我的 Go 项目。运行 go build
后,我一直收到 EOF 错误。
我尝试在 Jetbrains Goland、VS Code 中(尝试安装 gopls 时显示 EOF)或只是在普通命令行中同步依赖项 - 结果在任何地方都是相同的。请看到以下错误:
go get github.com/dgrijalva/jwt-go/v4 go: module github.com/dgrijalva/jwt-go/v4: Get "https://proxy.golang.org/github .com/dgrijalva/jwt-go/v4/@v/list": EOF
欢迎任何修复它的想法。
I have just received a new notebook with Win onboard (21H2 build 19044.1415) and tried to install my Go project. After running go build
I just keep receiving EOF errors.
I tried to sync dependencies in Jetbrains Goland, in VS Code (it is saying EOF when trying to install gopls) or just in plain command line - the result is the same everywhere. Please see the following error:
go get github.com/dgrijalva/jwt-go/v4 go: module github.com/dgrijalva/jwt-go/v4: Get "https://proxy.golang.org/github.com/dgrijalva/jwt-go/v4/@v/list": EOF
Any ideas ho to fix it would be welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。问题是在我连接的WiFi网络中。有一些代理服务器阻止依赖项下载(在这种情况下,应该调整Gonoproxy,Goproxy,GonosumDB)。我连接到另一个网络,一切都很好。不过,花了一两个小时试图找出问题。错误消息应明确更改为SMTH更具信息性。
Issue solved. The problem was in wifi network I was connected to. There were some proxy servers that prevented dependencies from downloading (maybe GONOPROXY, GOPROXY, GONOSUMDB should be tweaked in this case). I connected to another network and everything was fine. Spent an hour or two trying to find out the problem though. Error message should definetely be changed to smth more informative.