From 4c9230adfeadaf9f3cdf0ea356f3a755191ab1a7 Mon Sep 17 00:00:00 2001 From: Suleiman Dibirov Date: Fri, 12 Sep 2025 14:23:48 +0300 Subject: [PATCH] lint fixes Signed-off-by: Suleiman Dibirov --- pkg/cmd/dependency_build.go | 20 ++++++++++---------- pkg/cmd/dependency_update.go | 20 ++++++++++---------- pkg/downloader/chart_downloader.go | 3 +-- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/pkg/cmd/dependency_build.go b/pkg/cmd/dependency_build.go index 08075845e..5946e76b6 100644 --- a/pkg/cmd/dependency_build.go +++ b/pkg/cmd/dependency_build.go @@ -61,17 +61,17 @@ func newDependencyBuildCmd(out io.Writer) *cobra.Command { } man := &downloader.Manager{ - Out: out, - ChartPath: chartpath, - Keyring: client.Keyring, - SkipUpdate: client.SkipRefresh, + Out: out, + ChartPath: chartpath, + Keyring: client.Keyring, + SkipUpdate: client.SkipRefresh, SkipDownloadIfExists: client.SkipDownloadIfExists, - Getters: getter.All(settings), - RegistryClient: registryClient, - RepositoryConfig: settings.RepositoryConfig, - RepositoryCache: settings.RepositoryCache, - ContentCache: settings.ContentCache, - Debug: settings.Debug, + Getters: getter.All(settings), + RegistryClient: registryClient, + RepositoryConfig: settings.RepositoryConfig, + RepositoryCache: settings.RepositoryCache, + ContentCache: settings.ContentCache, + Debug: settings.Debug, } if client.Verify { man.Verify = downloader.VerifyIfPossible diff --git a/pkg/cmd/dependency_update.go b/pkg/cmd/dependency_update.go index 714893ea1..346d8253d 100644 --- a/pkg/cmd/dependency_update.go +++ b/pkg/cmd/dependency_update.go @@ -65,17 +65,17 @@ func newDependencyUpdateCmd(_ *action.Configuration, out io.Writer) *cobra.Comma } man := &downloader.Manager{ - Out: out, - ChartPath: chartpath, - Keyring: client.Keyring, - SkipUpdate: client.SkipRefresh, + Out: out, + ChartPath: chartpath, + Keyring: client.Keyring, + SkipUpdate: client.SkipRefresh, SkipDownloadIfExists: client.SkipDownloadIfExists, - Getters: getter.All(settings), - RegistryClient: registryClient, - RepositoryConfig: settings.RepositoryConfig, - RepositoryCache: settings.RepositoryCache, - ContentCache: settings.ContentCache, - Debug: settings.Debug, + Getters: getter.All(settings), + RegistryClient: registryClient, + RepositoryConfig: settings.RepositoryConfig, + RepositoryCache: settings.RepositoryCache, + ContentCache: settings.ContentCache, + Debug: settings.Debug, } if client.Verify { man.Verify = downloader.VerifyAlways diff --git a/pkg/downloader/chart_downloader.go b/pkg/downloader/chart_downloader.go index 2b10dd4ee..be57f59bb 100644 --- a/pkg/downloader/chart_downloader.go +++ b/pkg/downloader/chart_downloader.go @@ -350,7 +350,6 @@ func (c *ChartDownloader) ResolveChartVersion(ref, version string) (string, *url return "", u, err } - if registry.IsOCI(u.String()) { if c.RegistryClient == nil { return "", nil, fmt.Errorf("unable to lookup ref %s at version '%s', missing registry client", ref, version) @@ -610,7 +609,7 @@ func (c *ChartDownloader) getOciTag(ref, version string) (string, error) { return "", err } if len(tags) == 0 { - return "", fmt.Errorf("Unable to locate any tags in provided repository: %s", ref) + return "", fmt.Errorf("unable to locate any tags in provided repository: %s", ref) } // Determine if version provided