Skip to content

Commit

Permalink
fix: package import error fix
Browse files Browse the repository at this point in the history
Signed-off-by: liangxiaolei5 <[email protected]>
  • Loading branch information
liangxiaolei5 committed Jan 31, 2024
1 parent 934bb33 commit ebf43af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/chartmuseum/server/multitenant/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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
}
}
Expand Down

0 comments on commit ebf43af

Please sign in to comment.