# go: example.com/module@v0.0.0-20240830120000-abcdef123456：无效的伪版本：与版本控制时间戳不匹配

- **ID:** `go/invalid-pseudo-version`
- **领域:** go
- **类别:** build_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

go.mod 中的伪版本具有与存储库中任何实际提交不对应的时间戳或提交哈希。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.13 | active | — | — |
| 1.14 | active | — | — |
| 1.15 | active | — | — |
| 1.16 | active | — | — |
| 1.17 | active | — | — |
| 1.18 | active | — | — |
| 1.19 | active | — | — |
| 1.20 | active | — | — |
| 1.21 | active | — | — |
| 1.22 | active | — | — |
| 1.23 | active | — | — |

## 解决方案

1. **Use 'go get' to fetch the correct pseudo-version from the repository** (90% 成功率)
   ```
   go get example.com/module@master
   ```
2. **Run 'go mod tidy' to let Go resolve the correct version** (85% 成功率)
   ```
   go mod tidy
   ```

## 无效尝试

- **Trying to use 'go mod edit -replace' with a different pseudo-version** — Any incorrect pseudo-version will trigger the same validation error. (80% 失败率)
- **Deleting the pseudo-version from go.mod manually** — Removing it without replacement will cause missing dependency errors. (70% 失败率)
