You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version for charts defined in chartfile.yaml is parsed via semver module, but version from any given chart's Chart.yaml is not, instead we do a string comparison: if chartYAML.Version == r.Version.String() {
This breaks for charts that are not 100% compliant with semver spec, and prefix version with v, for example jetstack/cert-manager defines version as v1.8.0 and currently this is never correctly matched by tanka, resulting in the chart being re-downloaded on every tk tool charts vendor run.
The text was updated successfully, but these errors were encountered:
When chartfile.yaml requirements are parsed, version string is converted into a
semver.Version struct, dropping "optional" v prefix from the version. Match
this behaviour for Chart.yaml version so that they can be compared with each
other.
Closesgrafana#701
kklimonda-fn
changed the title
Chart.yaml should be parsed as semver so that matching it against chartfile.yaml works properly
Chart.yaml version should be parsed as semver so that matching it against requirements from chartfile.yaml works properly
May 6, 2022
When chartfile.yaml requirements are parsed, version string is converted into a
semver.Version struct, dropping "optional" v prefix from the version. Match
this behaviour for Chart.yaml version so that they can be compared with each
other.
Closes#701
version for charts defined in chartfile.yaml is parsed via semver module, but version from any given chart's Chart.yaml is not, instead we do a string comparison:
if chartYAML.Version == r.Version.String() {
This breaks for charts that are not 100% compliant with semver spec, and prefix version with v, for example
jetstack/cert-manager
defines version asv1.8.0
and currently this is never correctly matched by tanka, resulting in the chart being re-downloaded on everytk tool charts vendor
run.The text was updated successfully, but these errors were encountered: