Fix Trim to TrimPrefix

Signed-off-by: Scott Rigby <scott@r6by.com>
pull/10527/head
Scott Rigby 3 years ago
parent a8df413c41
commit 1fabbabae9
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -245,7 +245,7 @@ func (m *Manager) resolve(req []*chart.Dependency, repoNames map[string]string)
if registry.IsOCI(d.Repository) {
// TODO(scottrigby): fix HTTP error
// > Error: Get "https://localhost:5000/v2/helm-charts/tags/list": http: server gave HTTP response to HTTPS client
ref := strings.Trim(d.Repository, "oci://")
ref := strings.TrimPrefix(d.Repository, "oci://")
tags, err := m.RegistryClient.Tags(ref)
if err != nil {
return nil, err

Loading…
Cancel
Save