{
  "id": "go/module-graph-version-conflict",
  "signature": "go: inconsistent vendoring in /path/to/project: go.mod requires github.com/foo/bar v1.4.0 but vendor/modules.txt has v1.2.0",
  "signature_zh": "go: /path/to/project 中 vendoring 不一致：go.mod 要求 github.com/foo/bar v1.4.0 但 vendor/modules.txt 记录的是 v1.2.0",
  "regex": "go:\\ inconsistent\\ vendoring\\ in\\ /path/to/project:\\ go\\.mod\\ requires\\ github\\.com/foo/bar\\ v1\\.4\\.0\\ but\\ vendor/modules\\.txt\\ has\\ v1\\.2\\.0",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "Vendor directory is out of sync with go.mod after updating a dependency version but not re-running 'go mod vendor'.",
  "root_cause_type": "generic",
  "root_cause_zh": "更新依赖版本后未重新运行 'go mod vendor'，导致 vendor 目录与 go.mod 不同步。",
  "versions": [
    {
      "version": "1.14",
      "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.24",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Vendor directory contains actual source code and checksums; manual edits cause more inconsistencies and build failures.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the project is configured for vendoring (with -mod=vendor), removing it causes 'cannot find module' errors unless you switch to network mode.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "go mod vendor",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "go mod tidy && go mod vendor",
      "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-03-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}