{
  "id": "go/go-mod-tidy-fails-with-module-not-found",
  "signature": "go: github.com/foo/bar@v1.2.3: reading github.com/foo/bar/go.mod at revision v1.2.3: module not found",
  "signature_zh": "go：github.com/foo/bar@v1.2.3：在版本 v1.2.3 读取 github.com/foo/bar/go.mod：模块未找到",
  "regex": "go: github\\.com/[\\w-]+/[\\w-]+@v[\\d.]+: reading .*/go\\.mod at revision v[\\d.]+: module not found",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "The specified module version does not exist in the module proxy or upstream repository, often due to a typo in version tag or a deleted release.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定的模块版本在模块代理或上游仓库中不存在，通常由于版本标签拼写错误或已删除的发布。",
  "versions": [
    {
      "version": "go1.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "go1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "-e flag only suppresses error output, module still missing.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "go.sum regeneration requires valid module version; missing version persists.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check available versions: go list -m -versions github.com/foo/bar; then use a valid version.",
      "success_rate": 0.95,
      "how": "Check available versions: go list -m -versions github.com/foo/bar; then use a valid version.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use the latest version by removing @v1.2.3: go get github.com/foo/bar@latest",
      "success_rate": 0.85,
      "how": "Use the latest version by removing @v1.2.3: go get github.com/foo/bar@latest",
      "condition": "",
      "sources": []
    },
    {
      "action": "Set GONOSUMCHECK and GONOSUMDB env vars to bypass proxy restrictions: export GONOSUMCHECK=*; export GONOSUMDB=*; then go mod tidy",
      "success_rate": 0.7,
      "how": "Set GONOSUMCHECK and GONOSUMDB env vars to bypass proxy restrictions: export GONOSUMCHECK=*; export GONOSUMDB=*; then go mod tidy",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Check available versions: go list -m -versions github.com/foo/bar; then use a valid version.",
    "Use the latest version by removing @v1.2.3: go get github.com/foo/bar@latest",
    "Set GONOSUMCHECK and GONOSUMDB env vars to bypass proxy restrictions: export GONOSUMCHECK=*; export GONOSUMDB=*; then go mod tidy"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://go.dev/ref/mod",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.83,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2023-05-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}