{
  "id": "go/malformed-go-mod",
  "signature": "go: parsing go.mod: unexpected module path \"github.com/foo/bar\" at line 3: missing module declaration",
  "signature_zh": "go: 解析 go.mod 时出错：第 3 行出现意外的模块路径 \"github.com/foo/bar\"：缺少模块声明",
  "regex": "go:\\ parsing\\ go\\.mod:\\ unexpected\\ module\\ path\\ \"github\\.com/foo/bar\"\\ at\\ line\\ 3:\\ missing\\ module\\ declaration",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "go.mod file is malformed, often due to improper manual editing or merging conflicts, missing the 'module' directive.",
  "root_cause_type": "generic",
  "root_cause_zh": "go.mod 文件格式错误，通常是由于手动编辑不当或合并冲突，缺少 'module' 指令。",
  "versions": [
    {
      "version": "1.12",
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The module path must match the import paths used; a wrong path causes unresolved imports.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This will overwrite the file, losing all existing require statements.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.75,
      "how": "Add 'module github.com/your/project' at the first line, then run go mod tidy",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "git checkout go.mod",
      "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-04-11",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}