进行依赖的错误,产生EOF

发布于 2025-01-19 14:36:00 字数 398 浏览 4 评论 0原文

我刚刚收到一台带有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

菩提树下叶撕阳。 2025-01-26 14:36:00

问题解决了。问题是在我连接的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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文