Skip to content

Reusing the same chart causes them to be duplicated in the helmfile.lock #2562

Description

@michaelarnauts-dstny

Operating system

Ubuntu 24.04.4

Helmfile Version

1.4.4

Helm Version

v4.1.1

Bug description

I have multiple releases, all using the chart bjw-s/app-template in one helmfile.yaml. When runing helmfile deps, it adds them multiple times to the helmfile.lock

Example helmfile.yaml

repositories:
  - name: bjw-s
    url: https://bjw-s-labs.github.io/helm-charts

releases:
  - name: abc123
    chart: bjw-s/app-template
    values:
      - values/abc123.yaml
  - name: abc456
    chart: bjw-s/app-template
    values:
      - values/abc456.yaml

Error message you've seen (if any)

No errors, but the helmfile.lock is as follows:

version: 1.4.4
dependencies:
  - name: app-template
    repository: https://bjw-s-labs.github.io/helm-charts
    version: 4.6.2
  - name: app-template
    repository: https://bjw-s-labs.github.io/helm-charts
    version: 4.6.2
digest: sha256:de52d459aadab4e28d0c00a0962bc11f31cdb2e46f5696df1d330751b5420664
generated: "2026-04-30T16:07:47.97870081+02:00"

Steps to reproduce

Just run helmfile deps with the above helmfile.yaml

Working Helmfile Version

Not sure

Relevant discussion

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions