{
  "id": "go/go-mod-replace-directive-error",
  "signature": "go: parsing go.mod: unexpected module path \"example.com/foo\"",
  "signature_zh": "go: 解析 go.mod 失败：意外的模块路径 \"example.com/foo\"",
  "regex": "go:\\ parsing\\ go\\.mod:\\ unexpected\\ module\\ path\\ \"example\\.com/foo\"",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The go.mod file has a syntax error, often in a replace directive where the module path is not properly quoted or malformed.",
  "root_cause_type": "generic",
  "root_cause_zh": "go.mod 文件存在语法错误，通常在 replace 指令中模块路径未正确引用或格式错误。",
  "versions": [
    {
      "version": "1.18",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Module paths in go.mod are not quoted; adding quotes will cause a different parsing error.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This may break builds if the replace was needed for local development.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Check the go.mod file for any misplaced characters or newlines; use 'go mod edit -fmt' to format it correctly.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "If the error is in a replace directive, ensure the syntax is 'replace module => replacement' with correct paths.",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-07-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}