{
  "id": "go/inconsistent-vendoring",
  "signature": "go: inconsistent vendoring in /path/to/module:\n\tgithub.com/foo/bar@v1.2.3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt",
  "signature_zh": "go: /path/to/module 中的 vendor 不一致：\n\tgithub.com/foo/bar@v1.2.3: 在 go.mod 中显式 require，但在 vendor/modules.txt 中未标记为 explicit",
  "regex": "go:\\ inconsistent\\ vendoring\\ in\\ /path/to/module:\\\n\\\tgithub\\.com/foo/bar@v1\\.2\\.3:\\ is\\ explicitly\\ required\\ in\\ go\\.mod,\\ but\\ not\\ marked\\ as\\ explicit\\ in\\ vendor/modules\\.txt",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The vendor/ directory is stale relative to go.mod/go.sum. Common after editing dependencies without re-running go mod vendor.",
  "root_cause_type": "generic",
  "root_cause_zh": "vendor/ 目录相对于 go.mod/go.sum 已过期。常见于修改依赖后未重新运行 go mod vendor。",
  "versions": [
    {
      "version": "1.16+",
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "vendor contents still mismatch; next build fails differently",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "CI configured for vendored builds fails with missing vendor dir",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "ignores vendor but CI may still require vendoring",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.97,
      "how": "go mod tidy\ngo mod vendor\ngo build -mod=vendor ./...",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "go build -mod=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.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}