{
  "id": "go/module-path-mismatch",
  "signature": "go: module example.com/module@v1.0.0 requires example.com/dependency@v1.0.0, but go.sum is missing or does not contain hash for example.com/dependency@v1.0.0",
  "signature_zh": "go: 模块 example.com/module@v1.0.0 需要 example.com/dependency@v1.0.0，但 go.sum 缺失或不包含该依赖的哈希值",
  "regex": "go:\\ module\\ example\\.com/module@v1\\.0\\.0\\ requires\\ example\\.com/dependency@v1\\.0\\.0,\\ but\\ go\\.sum\\ is\\ missing\\ or\\ does\\ not\\ contain\\ hash\\ for\\ example\\.com/dependency@v1\\.0\\.0",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The go.sum file is out of sync with the go.mod file, often due to manual edits or incomplete 'go mod tidy' execution.",
  "root_cause_type": "generic",
  "root_cause_zh": "go.sum 文件与 go.mod 文件不同步，通常是由于手动编辑或未完全执行 'go mod tidy' 导致。",
  "versions": [
    {
      "version": "1.16",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.17",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.19",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.23",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Manually editing go.sum to add the missing hash",
      "why_fails": "go.sum is a checksum file; manual edits often introduce incorrect hashes, causing verification failures.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "Deleting go.mod entirely and recreating it",
      "why_fails": "Loses all dependency versions and module path, leading to more complex rebuild issues.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Run 'go mod tidy' to synchronize go.mod and go.sum",
      "success_rate": 0.95,
      "how": "go mod tidy",
      "condition": "",
      "sources": []
    },
    {
      "action": "Run 'go mod download' to fetch missing dependencies and update go.sum",
      "success_rate": 0.9,
      "how": "go mod download",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}