Change underscore (_) back to plus (+) for Helm

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

@ -604,7 +604,9 @@ func (c *Client) Tags(ref string) ([]string, error) {
var tagVersions []*semver.Version
for _, tag := range registryTags {
tagVersion, err := semver.StrictNewVersion(tag)
// Change underscore (_) back to plus (+) for Helm
// See https://github.com/helm/helm/issues/10166
tagVersion, err := semver.StrictNewVersion(strings.ReplaceAll(tag, "_", "+"))
if err == nil {
tagVersions = append(tagVersions, tagVersion)
}

Loading…
Cancel
Save