# go: 模块版本已移除: 410 Gone

- **ID:** `go/incompatible-module-version`
- **领域:** go
- **类别:** module_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

模块版本已从代理中撤回或移除，通常是由于安全问题或意外发布。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.21 | active | — | — |
| 1.22 | active | — | — |
| 1.23 | active | — | — |

## 解决方案

1. **Use a different version that is still available.** (80% 成功率)
   ```
   Run 'go list -m -versions github.com/old/lib' to see available versions, then update go.mod to a compatible one.
   ```
2. **Fork the module and use the fork as a replacement.** (70% 成功率)
   ```
   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.** — It may update to a different incompatible version; not all modules support v2. (60% 失败率)
- **Adding a replace directive pointing to the same version locally.** — The version is no longer available; local copy may not exist. (80% 失败率)
