Skip to content

Commit

Permalink
Fix Trim to TrimPrefix
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Rigby <scott@r6by.com>
  • Loading branch information
scottrigby committed Jan 12, 2022
1 parent a8df413 commit 1fabbab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/downloader/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fabbab

Please sign in to comment.