go
module_error
ai_generated
true
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%Fix Rate
84%Confidence
0Evidence
2024-07-20First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 1.21 | active | — | — | — |
| 1.22 | active | — | — | — |
| 1.23 | active | — | — | — |
Root Cause
The module version has been retracted or removed from the proxy, often due to a security issue or accidental release.
generic中文
模块版本已从代理中撤回或移除,通常是由于安全问题或意外发布。
Workarounds
-
80% success 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% success 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.
Dead Ends
Common approaches that don't work:
-
Using 'go get -u' to update to latest version.
60% fail
It may update to a different incompatible version; not all modules support v2.
-
Adding a replace directive pointing to the same version locally.
80% fail
The version is no longer available; local copy may not exist.