{
  "id": "go/go-mod-tidy-wrong-version",
  "signature": "go: github.com/foo/bar@v1.2.3: reading github.com/foo/bar/go.mod at revision v1.2.3: unknown revision v1.2.3",
  "signature_zh": "go：github.com/foo/bar@v1.2.3：读取修订版本 v1.2.3 的 go.mod 时出错：未知修订版本 v1.2.3",
  "regex": "reading .*/go.mod at revision v[0-9]+\\.[0-9]+\\.[0-9]+: unknown revision v[0-9]+\\.[0-9]+\\.[0-9]+",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "The requested module version does not exist in the remote repository, often due to a typo, tag mismatch, or missing tag.",
  "root_cause_type": "generic",
  "root_cause_zh": "请求的模块版本在远程仓库中不存在，通常是由于拼写错误、标签不匹配或标签缺失。",
  "versions": [
    {
      "version": "go1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.23",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Running 'go clean -modcache' and retrying.",
      "why_fails": "The cache is not the issue; the version truly doesn't exist in the remote repo.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Adding a replace directive in go.mod pointing to a local path.",
      "why_fails": "This only works if the local path contains the correct code; it doesn't fix the remote version mismatch.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the tag exists in the remote repository using 'git ls-remote --tags https://github.com/foo/bar' and correct the version in go.mod.",
      "success_rate": 0.9,
      "how": "Verify the tag exists in the remote repository using 'git ls-remote --tags https://github.com/foo/bar' and correct the version in go.mod.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use 'go list -m -versions github.com/foo/bar' to list all available versions and choose a valid one.",
      "success_rate": 0.85,
      "how": "Use 'go list -m -versions github.com/foo/bar' to list all available versions and choose a valid one.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the tag exists in the remote repository using 'git ls-remote --tags https://github.com/foo/bar' and correct the version in go.mod.",
    "Use 'go list -m -versions github.com/foo/bar' to list all available versions and choose a valid one."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://go.dev/ref/mod#go-mod-tidy",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2024-01-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}