{
  "id": "cmake/fetchcontent-integrity-failure",
  "signature": "CMake Error: FetchContent: Integrity check failed for <https://example.com/repo/archive/v1.0.tar.gz>\n  Expected hash: abc123def456\n  Actual hash:  789012ghi345",
  "signature_zh": "CMake 错误：FetchContent：完整性检查失败 <https://example.com/repo/archive/v1.0.tar.gz>\n  期望哈希：abc123def456\n  实际哈希：789012ghi345",
  "regex": "CMake Error: FetchContent: Integrity check failed for <.*>\n  Expected hash: [a-f0-9]+\n  Actual hash:   [a-f0-9]+",
  "domain": "cmake",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The downloaded archive's hash does not match the expected hash specified in FetchContent_Declare, indicating a corrupted download, a man-in-the-middle attack, or an outdated expected hash.",
  "root_cause_type": "generic",
  "root_cause_zh": "下载的存档哈希与 FetchContent_Declare 中指定的期望哈希不匹配，表明下载损坏、中间人攻击或期望哈希已过时。",
  "versions": [
    {
      "version": "cmake 3.14",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "cmake 3.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "cmake 3.28",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "FetchContent caches the corrupted archive; need to delete the _deps directory first.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "May accept a malicious or corrupted file; always verify the hash from a trusted source.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Delete the cached download: rm -rf build/_deps/<name>-src and reconfigure to force re-download.",
      "success_rate": 0.85,
      "how": "Delete the cached download: rm -rf build/_deps/<name>-src and reconfigure to force re-download.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Update the expected hash in FetchContent_Declare to the correct one from the official source, then clear cache.",
      "success_rate": 0.9,
      "how": "Update the expected hash in FetchContent_Declare to the correct one from the official source, then clear cache.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "删除缓存的下载：rm -rf build/_deps/<name>-src 然后重新配置以强制重新下载。",
    "将 FetchContent_Declare 中的期望哈希更新为官方来源的正确哈希，然后清除缓存。"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://cmake.org/cmake/help/latest/module/FetchContent.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}