|
|
@ -154,9 +154,7 @@ func (c *ChartDownloader) getOciURI(ref, version string, u *url.URL) (*url.URL,
|
|
|
|
// If empty, try to get the highest available tag
|
|
|
|
// If empty, try to get the highest available tag
|
|
|
|
// If exact version, try to find it
|
|
|
|
// If exact version, try to find it
|
|
|
|
// If semver constraint string, try to find a match
|
|
|
|
// If semver constraint string, try to find a match
|
|
|
|
providedVersion := version
|
|
|
|
tag, err := registry.GetTagMatchingVersionOrConstraint(tags, version)
|
|
|
|
|
|
|
|
|
|
|
|
tag, err := registry.GetTagMatchingVersionOrConstraint(tags, providedVersion)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|