go module_error ai_generated true

go: github.com/foo/[email protected]: 读取 github.com/foo/bar/go.mod 在版本 v1.2.3 时失败:未知修订版本

go: github.com/foo/[email protected]: reading github.com/foo/bar/go.mod at revision v1.2.3: unknown revision

ID: go/go-get-version-conflict

其他格式: JSON · Markdown 中文 · English
80%修复率
82%置信度
0证据数
2024-05-12首次发现

版本兼容性

版本状态引入弃用备注
1.15 active — — —

根因分析

请求的模块版本在远程仓库中不存在,可能因为标签被删除或从未创建。

English

The requested module version does not exist in the remote repository, possibly because the tag was deleted or never created.

generic

解决方案

  1. 85% 成功率
    Check available tags with 'git ls-remote --tags https://github.com/foo/bar' and use an existing version.
  2. 60% 成功率
    If the version was recently deleted, contact the maintainer or use a fork that has the version.

无效尝试

常见但无效的做法:

  1. 90% 失败

    This does not affect version existence; the revision is genuinely absent.

  2. 70% 失败

    Branches are not valid module versions unless they follow semver naming; this will cause other errors.