From b9862bdae64ebe380576eb92791af9c0a37fd3ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=9B=B8=E8=BD=A9?= <9570112+nauxliu@users.noreply.github.com> Date: Thu, 6 Jun 2019 14:23:27 +0800 Subject: [PATCH] Sync repos before update deps (#660) --- pkg/app/run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/app/run.go b/pkg/app/run.go index 51338af9..5e95bf07 100644 --- a/pkg/app/run.go +++ b/pkg/app/run.go @@ -30,6 +30,10 @@ func (r *Run) askForConfirmation(msg string) bool { func (r *Run) Deps(c DepsConfigProvider) []error { r.helm.SetExtraArgs(argparser.GetArgs(c.Args(), r.state)...) + if errs := r.ctx.SyncReposOnce(r.state, r.helm); errs != nil && len(errs) > 0 { + return errs + } + return r.state.UpdateDeps(r.helm) }