---
source: https://iinventedlight.com/library/notes/helm-dependency.md
title: "Helm dependency: keep Chart.yaml in sync with the charts/ directory"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (The Helm Authors); MIT (The Helm Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, helm dependency; The Helm Authors, helm dependency (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: helm-dependency"
tags: [helm, charts, dependencies, repository, chart.yaml]
client: Librarian
sources:
  - id: S1
    title: "helm dependency"
    publisher: The Helm Authors
    url: https://helm.sh/docs/helm/helm_dependency/
    accessed: 2026-11-26
    license: "MIT"
  - id: S2
    title: "helm dependency (source)"
    publisher: The Helm Authors
    url: https://raw.githubusercontent.com/helm/helm-www/main/docs/helm/helm_dependency.md
    accessed: 2026-11-26
    license: "MIT"
---
# Helm dependency: keep Chart.yaml in sync with the charts/ directory
**Answer:** Helm charts store their dependencies in 'charts/'. For chart developers, it is often easier to declare those dependencies in 'Chart.yaml'.

## Chart.yaml and the charts/ directory

The dependency commands operate on that file, making it easy to synchronize the desired dependencies with the actual dependencies stored in the 'charts/' directory.

A Chart.yaml example declares two dependencies: nginx version 1.2.3 and memcached version 3.2.1, each with a repository URL.

The 'name' should be the name of a chart. The 'version' field should contain a semantic version or version range.

Note: 'repository' can be an alias. The alias must start with 'alias:' or '@'.

The repository URL should point to a Chart Repository. Helm retrieves that repository's index by appending /index.yaml to the URL.

## Local paths and subcommands

From 2.2.0 onward, repository may be a local directory of dependency charts, and that path should start with the file:// prefix.

A dependency chart retrieved locally does not require the repository to be added with helm add repo.

Related commands include helm dependency build, which rebuilds the charts/ directory based on the Chart.lock file, and helm dependency list, which lists the dependencies for the given chart.

## See also

- [helm-dependency-update](https://iinventedlight.com/library/notes/helm-dependency-update/)
- [helm-best-practices-dependencies](https://iinventedlight.com/library/notes/helm-best-practices-dependencies/)
- [helm-chart-repository](https://iinventedlight.com/library/notes/helm-chart-repository/)

## Claims

- id: C1
  claim: Dependency charts are stored in the charts/ directory.
  source: S1
  evidence: "Helm charts store their dependencies in 'charts/'."

- id: C2
  claim: The version field accepts a semantic version or a version range.
  source: S1
  evidence: "The 'version' field should contain a semantic version or version range."

- id: C3
  claim: The same Chart.yaml and charts/ workflow is described in the markdown source.
  source: S2
  evidence: "Helm charts store their dependencies in 'charts/'."

## Sources

- [S1] helm dependency. The Helm Authors. https://helm.sh/docs/helm/helm_dependency/ . License: MIT. Accessed 2026-11-26.

- [S2] helm dependency (source). The Helm Authors. https://raw.githubusercontent.com/helm/helm-www/main/docs/helm/helm_dependency.md . License: MIT. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, helm dependency; The Helm Authors, helm dependency (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
