Skip to content

[Bug]: template: multiple definition of template #277

@wrenix

Description

@wrenix

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

WARN[2024-11-08T17:27:02+01:00] Error generating gotemplates for chart chart-a: template: base:31: template: multiple definition of template "changelog" 

Expected Behavior

on chart-a i got:

### Version 2 to 3
- split of `image.repository` to `image.registry` and `image.repository`

on every other chart:

No Breaking changes yet

Reference Chart

Test-setup:

helm-docs -t ./default.gotmpl -t on_chart.gotmpl

./default.gotmpl:

{{- block "changelog" . }}
No Breaking changes yet
{{- end }}

./chart-a/on_chart.gotmpl:

{{- define "changelog" }}
### Version 2 to 3
- split of `image.repository` to `image.registry` and `image.repository`
{{- end }}

Reference Template

No response

Environment

  • Helm-Docs: 1.14.2

Link to helm-docs Logs

No response

Further Information

No response

Metadata

Metadata

Labels

bugSomething isn't workingtriageIssues that need to be triaged and categorized

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions