Made urls key more specific

Signed-off-by: Jeff van Dam <jeff.van.dam@est.tech>
pull/11726/head
Jeff van Dam 1 year ago
parent 0a7bffdd3c
commit 183f01b32c

@ -199,7 +199,7 @@ func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string
if constraint.Check(v) {
found = true
if len(ver.URLs) > 0 {
urls[ver.Name] = ver.URLs[0]
urls[d.Repository+ver.Name+ver.Version] = ver.URLs[0]
}
locked[i].Version = v.Original()
break

@ -745,8 +745,9 @@ func (m *Manager) findChartURL(name, version, repoURL string, repos map[string]*
}
}
if _, ok := urls[name]; ok {
url = urls[name]
urlsKey := repoURL + name + version
if _, ok := urls[urlsKey]; ok {
url = urls[urlsKey]
} else {
url, err = repo.FindChartInRepoURL(repoURL, name, version, certFile, keyFile, caFile, m.Getters)
}

Loading…
Cancel
Save