{
  "id": "go/ambiguous-import",
  "signature": "go: ambiguous import: found package X in multiple modules: Y and Z",
  "signature_zh": "go: 歧义导入：在多个模块中发现包 X：Y 和 Z",
  "regex": "go:\\ ambiguous\\ import:\\ found\\ package\\ X\\ in\\ multiple\\ modules:\\ Y\\ and\\ Z",
  "domain": "go",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "Multiple modules provide the same import path, causing ambiguity.",
  "root_cause_type": "generic",
  "root_cause_zh": "同一个包路径被多个模块提供，导致导入歧义。",
  "versions": [
    {
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "删除其中一个模块",
      "why_fails": "可能两个模块都是必需的，删除会导致其他依赖问题。",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "使用go mod tidy",
      "why_fails": "go mod tidy不会解决歧义，只会报告错误。",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "使用replace指令指定一个模块",
      "success_rate": 0.7,
      "how": "replace example.com/pkg => github.com/user/module v1.0.0",
      "condition": "",
      "sources": []
    },
    {
      "action": "更新导入路径使用完整模块路径",
      "success_rate": 0.6,
      "how": "import \"github.com/user/module/pkg\"",
      "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-11-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}