go module_error ai_generated true

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

Also available as: JSON · Markdown · 中文
80%Fix Rate
82%Confidence
0Evidence
2024-05-12First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1.15 active — — —

Root Cause

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

generic

中文

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

Workarounds

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

Dead Ends

Common approaches that don't work:

  1. 90% fail

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

  2. 70% fail

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