Commit 09313ad2 authored by Christoph Hösler's avatar Christoph Hösler

fix(helm): resolve relative chart paths

parent 06cc1ea3
......@@ -424,7 +424,22 @@ func locateChartPath(repoURL, name, version string, verify bool, keyring,
if err != nil {
return "", err
}
name = chartURL
parsedChartURL, err := url.Parse(chartURL)
if err != nil {
return "", err
}
if parsedChartURL.IsAbs() {
name = chartURL
} else {
parsedRepoUrl, err := url.Parse(repoURL)
if err != nil {
return "", err
}
name = parsedRepoUrl.ResolveReference(parsedChartURL).String()
}
}
if _, err := os.Stat(settings.Home.Archive()); os.IsNotExist(err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment