diff --git a/cmd/helm/lint.go b/cmd/helm/lint.go index dfa1d2085..96c512edb 100644 --- a/cmd/helm/lint.go +++ b/cmd/helm/lint.go @@ -102,7 +102,7 @@ func newLintCmd(out io.Writer) *cobra.Command { if settings.Debug { for _, contents := range result.RenderedContents { - fmt.Fprintf(&message, "---\n# Source: %s\n%s\n", path, contents) + fmt.Fprintf(&message, "---\n# Source: %s\n%s", path, contents) } } diff --git a/cmd/helm/testdata/output/lint-chart-with-template-with-invalid-yaml-with-debug.txt b/cmd/helm/testdata/output/lint-chart-with-template-with-invalid-yaml-with-debug.txt index d04c1efab..3092718e3 100644 --- a/cmd/helm/testdata/output/lint-chart-with-template-with-invalid-yaml-with-debug.txt +++ b/cmd/helm/testdata/output/lint-chart-with-template-with-invalid-yaml-with-debug.txt @@ -2,7 +2,6 @@ [INFO] Chart.yaml: icon is recommended [ERROR] Chart.yaml: chart type is not valid in apiVersion 'v1'. It is valid in apiVersion 'v2' [ERROR] templates/alpine-pod.yaml: unable to parse YAML: error converting YAML to JSON: yaml: line 11: could not find expected ':' - --- # Source: testdata/testcharts/chart-with-template-with-invalid-yaml apiVersion: v1