From ceb684e795c721d7db97800b1a0e144a2b236745 Mon Sep 17 00:00:00 2001 From: John Howard Date: Tue, 23 Nov 2021 08:25:15 -0800 Subject: [PATCH] Add suggestion to error message when dependencies missing Signed-off-by: John Howard --- cmd/helm/testdata/output/upgrade-with-missing-dependencies.txt | 2 +- pkg/action/install.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helm/testdata/output/upgrade-with-missing-dependencies.txt b/cmd/helm/testdata/output/upgrade-with-missing-dependencies.txt index de62e1d2a..1bbc1617b 100644 --- a/cmd/helm/testdata/output/upgrade-with-missing-dependencies.txt +++ b/cmd/helm/testdata/output/upgrade-with-missing-dependencies.txt @@ -1 +1 @@ -Error: found in Chart.yaml, but missing in charts/ directory: reqsubchart2 +Error: found in Chart.yaml, but missing in charts/ directory: reqsubchart2. Did you run `helm dependency build`? diff --git a/pkg/action/install.go b/pkg/action/install.go index b84a57271..3ce676928 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -657,7 +657,7 @@ OUTER: } if len(missing) > 0 { - return errors.Errorf("found in Chart.yaml, but missing in charts/ directory: %s", strings.Join(missing, ", ")) + return errors.Errorf("found in Chart.yaml, but missing in charts/ directory: %s. Did you run `helm dependency build`?", strings.Join(missing, ", ")) } return nil }