# go: github.com/foo/bar@v1.4.0: 未知修订版本 v1.4.0

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

## 根因

请求的 tag/分支/提交在远程仓库中不存在（或已被删除）。通常由拼写错误或依赖了被重命名的分支导致。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.16+ | active | — | — |
| 1.21+ | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   git ls-remote --tags https://github.com/foo/bar
go get github.com/foo/bar@v1.3.9
   ```
2. **** (85% 成功率)
   ```
   go get github.com/foo/bar@<sha>
# go.mod records v0.0.0-<date>-<sha>
   ```
3. **** (90% 成功率)
   ```
   go get github.com/foo/bar@latest
   ```

## 无效尝试

- **** — the revision still does not exist upstream (90% 失败率)
- **** — cache is not the problem; the tag is missing (95% 失败率)
- **** — fails with 'replacement directory does not exist' (90% 失败率)
