{
  "id": "go/go-mod-tidy-module-not-found",
  "signature": "go: module github.com/foo/bar@latest: module not found",
  "signature_zh": "go: 模块 github.com/foo/bar@latest: 未找到模块",
  "regex": "go: module .+@latest: module not found",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "The specified module version does not exist in the module proxy or repository, often due to a typo or unpublished version.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定的模块版本在模块代理或仓库中不存在，通常由于拼写错误或版本未发布。",
  "versions": [
    {
      "version": "Go 1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Go 1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Go 1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The -e flag only continues despite errors, but the module still won't be found, leaving the build broken.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not resolve the missing module; go mod tidy will still fail.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the module is not found locally or on the proxy, this will not help; it may even worsen the situation by disabling proxy entirely.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the module path and version: run 'go list -m github.com/foo/bar@latest' to check if the module exists.",
      "success_rate": 0.85,
      "how": "Verify the module path and version: run 'go list -m github.com/foo/bar@latest' to check if the module exists.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a specific version instead of @latest: 'go get github.com/foo/bar@v1.2.3' after confirming the version exists.",
      "success_rate": 0.9,
      "how": "Use a specific version instead of @latest: 'go get github.com/foo/bar@v1.2.3' after confirming the version exists.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Clear module cache and retry: 'go clean -modcache' then 'go mod tidy'",
      "success_rate": 0.75,
      "how": "Clear module cache and retry: 'go clean -modcache' then 'go mod tidy'",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the module path and version: run 'go list -m github.com/foo/bar@latest' to check if the module exists.",
    "Use a specific version instead of @latest: 'go get github.com/foo/bar@v1.2.3' after confirming the version exists.",
    "Clear module cache and retry: 'go clean -modcache' then 'go mod tidy'"
  ],
  "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.88,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2023-06-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}