{
  "id": "go/vendor-directory-not-present",
  "signature": "go: inconsistent vendoring: vendor directory is missing, but -mod=vendor is set. Run 'go mod vendor'.",
  "signature_zh": "go: vendoring 不一致：vendor 目录缺失，但设置了 -mod=vendor。请运行 'go mod vendor'。",
  "regex": "go:\\ inconsistent\\ vendoring:\\ vendor\\ directory\\ is\\ missing,\\ but\\ \\-mod=vendor\\ is\\ set\\.\\ Run\\ 'go\\ mod\\ vendor'\\.",
  "domain": "go",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The project is configured to use vendoring (via -mod=vendor or GOFLAGS), but the vendor directory doesn't exist.",
  "root_cause_type": "generic",
  "root_cause_zh": "项目配置为使用 vendoring（通过 -mod=vendor 或 GOFLAGS），但 vendor 目录不存在。",
  "versions": [
    {
      "version": "1.14",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Go expects specific files like modules.txt; empty dirs won't satisfy the build.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "You may not control the build environment; the flag may be set in CI.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "go mod vendor",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}