1
0
mirror of https://github.com/helm/chart-testing.git synced 2026-02-05 09:45:14 +01:00

List changed fixes (#190)

Signed-off-by: Jeff Knurek <j.knurek@travelaudience.com>
This commit is contained in:
jeff-knurek
2019-12-08 20:05:25 +01:00
committed by Reinhard Nägele
parent b8572749f0
commit b9d4ad0a41
2 changed files with 2 additions and 1 deletions

View File

@@ -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)
}
}

View File

@@ -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