{
  "id": "go/mod-tidy-incompatible",
  "signature": "go: github.com/example/mod@v1.0.0 requires golang.org/x/text@v0.3.0, but go.mod requires golang.org/x/text@v0.4.0 (incompatible)",
  "signature_zh": "go: 模块要求不兼容的依赖版本",
  "regex": "go:\\ github\\.com/example/mod@v1\\.0\\.0\\ requires\\ golang\\.org/x/text@v0\\.3\\.0,\\ but\\ go\\.mod\\ requires\\ golang\\.org/x/text@v0\\.4\\.0\\ \\(incompatible\\)",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "A module dependency requires a different version of a transitive dependency than what is specified in go.mod, causing a conflict.",
  "root_cause_type": "generic",
  "root_cause_zh": "模块依赖要求与 go.mod 中指定的传递依赖版本不同，导致冲突。",
  "versions": [
    {
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Deleting go.sum and running 'go mod tidy' again.",
      "why_fails": "The conflict is in go.mod; tidy will re-resolve but may not fix incompatibility.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Forcing an update with 'go get -u golang.org/x/text@v0.3.0'.",
      "why_fails": "This may break other dependencies that require v0.4.0.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Update the conflicting dependency to a version that satisfies all requirements.",
      "success_rate": 0.75,
      "how": "Run 'go get golang.org/x/text@v0.4.0' and then 'go mod tidy' to resolve.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a replace directive to force a version.",
      "success_rate": 0.7,
      "how": "Add to go.mod: 'replace golang.org/x/text v0.3.0 => golang.org/x/text v0.4.0' if compatible.",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}