From 298585f625a78baf70156aecd765911ccb49f98f Mon Sep 17 00:00:00 2001 From: Andy Kilpatrick Date: Wed, 20 May 2020 12:35:52 +0100 Subject: [PATCH] Correct format with gofmt Signed-off-by: Andy Kilpatrick --- cmd/helm/dependency_update.go | 2 +- cmd/helm/install.go | 2 +- pkg/action/dependency.go | 2 +- pkg/downloader/manager.go | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/helm/dependency_update.go b/cmd/helm/dependency_update.go index 1c671a0aa..a978cd675 100644 --- a/cmd/helm/dependency_update.go +++ b/cmd/helm/dependency_update.go @@ -62,7 +62,7 @@ func newDependencyUpdateCmd(out io.Writer) *cobra.Command { ChartPath: chartpath, Keyring: client.Keyring, SkipUpdate: client.SkipRefresh, - FileOnly: client.FileOnly, + FileOnly: client.FileOnly, Getters: getter.All(settings), RepositoryConfig: settings.RepositoryConfig, RepositoryCache: settings.RepositoryCache, diff --git a/cmd/helm/install.go b/cmd/helm/install.go index 65984cdda..d0f631010 100644 --- a/cmd/helm/install.go +++ b/cmd/helm/install.go @@ -208,7 +208,7 @@ func runInstall(args []string, client *action.Install, valueOpts *values.Options ChartPath: cp, Keyring: client.ChartPathOptions.Keyring, SkipUpdate: false, - FileOnly: false, + FileOnly: false, Getters: p, RepositoryConfig: settings.RepositoryConfig, RepositoryCache: settings.RepositoryCache, diff --git a/pkg/action/dependency.go b/pkg/action/dependency.go index df0653f09..54deac71d 100644 --- a/pkg/action/dependency.go +++ b/pkg/action/dependency.go @@ -36,7 +36,7 @@ type Dependency struct { Verify bool Keyring string SkipRefresh bool - FileOnly bool + FileOnly bool } // NewDependency creates a new Dependency object with the given configuration. diff --git a/pkg/downloader/manager.go b/pkg/downloader/manager.go index 8bf871675..ef0119cb5 100644 --- a/pkg/downloader/manager.go +++ b/pkg/downloader/manager.go @@ -56,8 +56,8 @@ type Manager struct { Keyring string // SkipUpdate indicates that the repository should not be updated first. SkipUpdate bool - // FileOnly indicates that only file:// charts should be updated - FileOnly bool + // FileOnly indicates that only file:// charts should be updated + FileOnly bool // Getter collection for the operation Getters []getter.Provider RepositoryConfig string @@ -280,9 +280,9 @@ func (m *Manager) downloadAll(deps []*chart.Dependency) error { dep.Version = ver continue } else if m.FileOnly { - fmt.Fprintf(m.Out, "Updating file:// dependencies only - skip %s from repo %s\n", dep.Name, dep.Repository) - continue - } + fmt.Fprintf(m.Out, "Updating file:// dependencies only - skip %s from repo %s\n", dep.Name, dep.Repository) + continue + } // Any failure to resolve/download a chart should fail: // https://github.com/helm/helm/issues/1439