New ๐ŸŒŠ wave for @helm

Commit 23796ed6

23796ed616ebMerged

Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified

Description

skip updating dependencies for non-local chart

Details

Commit
23796ed616eb
Parent
cc2242a430ef

pkg/release/chart.gomodifiedView file

@@ -6,6 +6,7 @@
66 "os"
77 "path/filepath"
88
9+ "github.com/helmwave/helmwave/pkg/helper"
910 "helm.sh/helm/v3/pkg/action"
1011 "helm.sh/helm/v3/pkg/chart"
1112 "helm.sh/helm/v3/pkg/chart/loader"
@@ -54,10 +55,16 @@
5455 }
5556
5657 func (rel *config) ChartDepsUpd() error {
57- return chartDepsUpd(rel.Chart().Name, rel.Helm())
58+ return rel.chartDepsUpd(rel.Chart().Name, rel.Helm())
5859 }
5960
60-func chartDepsUpd(name string, settings *helm.EnvSettings) error {
61+func (rel *config) chartDepsUpd(name string, settings *helm.EnvSettings) error {
62+ if !helper.IsExists(filepath.Clean(name)) {
63+ rel.Logger().Info("skipping updating dependencies for remote chart")
64+
65+ return nil
66+ }
67+
6168 client := action.NewDependency()
6269 man := &downloader.Manager{
6370 Out: io.Discard,