fix 'helm dep build' command when chart contains 'git:' dependencies

Signed-off-by: Jeff Valore <rally25rs@yahoo.com>
pull/11258/head
Jeff Valore 6 years ago committed by yxxhero
parent 9bdc07b0ba
commit ee05704179

@ -50,7 +50,6 @@ func (g *GitDownloader) ensureGitDirIgnored(repoPath string) error {
// DownloadTo will create a temp directory, then fetch a git repo into it.
// The git repo will be archived into a chart and copied to the destPath.
func (g *GitDownloader) DownloadTo(gitURL string, ref string, destPath string) error {
// the git archive command returns a tgz archive. we need to extract it to get the actual chart files.
tmpDir, err := ioutil.TempDir("", "helm")
if err != nil {
return err

@ -491,6 +491,11 @@ Loop:
continue
}
// If repo is from git url, continue
if strings.HasPrefix(dd.Repository, "git:") {
continue
}
if dd.Repository == "" {
continue
}

@ -62,7 +62,7 @@ Please make sure you have the correct access rights
and the repository exists.`
}
fmt.Fprintf(os.Stdout, result)
fmt.Fprint(os.Stdout, result)
os.Exit(exitCode)
}

Loading…
Cancel
Save