diff --git a/pkg/chart/chart.go b/pkg/chart/chart.go index 7380350e..09219b9e 100644 --- a/pkg/chart/chart.go +++ b/pkg/chart/chart.go @@ -705,7 +705,7 @@ func (t *Testing) ComputeChangedChartDirectories() ([]string, error) { changedChartDirs = append(changedChartDirs, chartDir) } } else { - fmt.Printf("Directory '%s' is no chart directory. Skipping...", chartDir) + fmt.Printf("Directory '%s' is not a valid chart directory. Skipping...\n", dir) } } diff --git a/pkg/util/util.go b/pkg/util/util.go index 45d56631..0b078d81 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -131,6 +131,7 @@ func (u ChartUtils) LookupChartDir(chartDirs []string, dir string) (string, erro for { chartYaml := path.Join(currentDir, "Chart.yaml") parent := path.Dir(path.Dir(chartYaml)) + chartDir = strings.TrimRight(chartDir, "/") // remove any trailing slash from the dir // check directory has a Chart.yaml and that it is in a // direct subdirectory of a configured charts directory