{
  "id": "cicd/helm-chart-dependency-missing",
  "signature": "Error: chart requires dependencies. Chart.yaml has dependencies but no 'charts/' directory. Run 'helm dependency update' to generate the charts directory.",
  "signature_zh": "错误：chart 需要依赖项。Chart.yaml 有依赖项，但没有 'charts/' 目录。运行 'helm dependency update' 以生成 charts 目录。",
  "regex": "chart requires dependencies.*Chart.yaml has dependencies.*no 'charts/' directory",
  "domain": "cicd",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "Helm chart has declared dependencies in Chart.yaml but the charts/ directory is missing because dependencies were not downloaded or committed to the repository.",
  "root_cause_type": "generic",
  "root_cause_zh": "Helm chart 在 Chart.yaml 中声明了依赖项，但 charts/ 目录缺失，因为依赖项未下载或未提交到仓库。",
  "versions": [
    {
      "version": "Helm 3.12.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Helm 3.14.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Manually creating an empty charts/ directory does not resolve the error because the actual dependency packages are missing.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Deleting Chart.yaml dependencies and re-adding them without running helm dependency update still leaves charts/ empty.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using helm install --dependency-update flag may fail if the chart repository is not accessible (e.g., private repo).",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Run 'helm dependency update ./chart-dir' in the chart directory to download dependencies into the charts/ folder. Then commit the charts/ directory to your repository.",
      "success_rate": 0.95,
      "how": "Run 'helm dependency update ./chart-dir' in the chart directory to download dependencies into the charts/ folder. Then commit the charts/ directory to your repository.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Add a CI step before deployment: 'helm dependency build ./chart-dir' to ensure dependencies are fetched fresh each build without committing charts/.",
      "success_rate": 0.85,
      "how": "Add a CI step before deployment: 'helm dependency build ./chart-dir' to ensure dependencies are fetched fresh each build without committing charts/.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Run 'helm dependency update ./chart-dir' in the chart directory to download dependencies into the charts/ folder. Then commit the charts/ directory to your repository.",
    "Add a CI step before deployment: 'helm dependency build ./chart-dir' to ensure dependencies are fetched fresh each build without committing charts/."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://helm.sh/docs/helm/helm_dependency/",
  "official_doc_section": null,
  "error_code": "HELM_DEP_MISSING",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2023-07-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}