go
module_error
ai_generated
true
go: 模块版本已移除: 410 Gone
go: github.com/old/[email protected]: reading https://proxy.golang.org/github.com/old/lib/@v/v2.0.0.mod: 410 Gone
ID: go/incompatible-module-version
80%修复率
84%置信度
0证据数
2024-07-20首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 1.21 | active | — | — | — |
| 1.22 | active | — | — | — |
| 1.23 | active | — | — | — |
根因分析
模块版本已从代理中撤回或移除,通常是由于安全问题或意外发布。
English
The module version has been retracted or removed from the proxy, often due to a security issue or accidental release.
解决方案
-
80% 成功率 Use a different version that is still available.
Run 'go list -m -versions github.com/old/lib' to see available versions, then update go.mod to a compatible one.
-
70% 成功率 Fork the module and use the fork as a replacement.
Add to go.mod: 'replace github.com/old/lib v2.0.0 => github.com/yourfork/lib v2.0.0' with the forked code.
无效尝试
常见但无效的做法:
-
Using 'go get -u' to update to latest version.
60% 失败
It may update to a different incompatible version; not all modules support v2.
-
Adding a replace directive pointing to the same version locally.
80% 失败
The version is no longer available; local copy may not exist.