From eab50f6a733cdfd571c6684422112adfba62878d Mon Sep 17 00:00:00 2001 From: liangxiaolei5 Date: Wed, 31 Jan 2024 09:56:30 +0800 Subject: [PATCH] fix: package import error fix --- pkg/chartmuseum/server/multitenant/index.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/chartmuseum/server/multitenant/index.go b/pkg/chartmuseum/server/multitenant/index.go index f89777d8..e327a6af 100644 --- a/pkg/chartmuseum/server/multitenant/index.go +++ b/pkg/chartmuseum/server/multitenant/index.go @@ -24,6 +24,7 @@ import ( cm_logger "helm.sh/chartmuseum/pkg/chartmuseum/logger" cm_repo "helm.sh/chartmuseum/pkg/repo" + repo2 "helm.sh/helm/v3/pkg/repo" ) const ( @@ -51,7 +52,7 @@ func (server *MultiTenantServer) getIndexFile(log cm_logger.LoggingFn, repo stri if len(entry.RepoIndex.Entries) != 0 || server.CacheInterval != 0 { allObjects, err := server.fetchChartsInStorage(log, repo) if err != nil || allChartsCount != len(allObjects) { - entry.RepoIndex.Entries = map[string]cm_repo.ChartVersions{} + entry.RepoIndex.Entries = map[string]repo2.ChartVersions{} server.CacheInterval = 0 } }