fix(helm): assign modified cvs back to i.Entries

Via assigning back the slice to original array,
the exclusion on invalid helm charts can be guaranteed.

Closes #12744

Signed-off-by: Geoffrey Chen <ziqianggeoffreychen@gmail.com>
pull/12760/head
Geoffrey Chen 5 months ago
parent 63b687cb17
commit 92736c5d71

@ -367,6 +367,7 @@ func loadIndex(data []byte, source string) (*IndexFile, error) {
cvs = append(cvs[:idx], cvs[idx+1:]...)
}
}
i.Entries[name] = cvs
}
i.SortEntries()
if i.APIVersion == "" {

Loading…
Cancel
Save