Open psolarcz opened 3 years ago
I found source of a problem - our version was incorrect - 09.20.22 should not have leading 0.
This was returning an error:
Version segment starts with 0
Not sure if this is expected behaviour that there is no error, for sure it makes troubleshooting more difficult :)
@psolarcz I believe that's because 09.20.22
is not a valid semver: https://regex101.com/r/vkijKf/1/
Found your issue while also playing around with chart's dev version. #205 and #410 were a big help for me, I think something like this will work: 0.0.0-09-20-22
https://play.golang.org/p/Tiy3DQiR8La https://github.com/Masterminds/semver#checking-version-constraints
Hi
We are encountering somewhat similar issues on HelmRepository, but this time with larger numbers.
It seems something like 3.1008.240831
is accepted but 3.1008.2409008
is not.
I tried looking into the code to see if there is any truncation, but could not find it.
Semver code seems to parse each of the 3 elements as uint64.
Any hint would be appreciated.
Version:
ghcr.io/fluxcd/source-controller:v0.15.4
I'm getting an error: no chart version found for XXX-09.20.x:
However it exist in our private repo:
It's also present in the index.yaml file:
When I specify version explicitly it works fine, I have problem only when I use some range operator or wildcards.
Edit:
HelmRelease manifest:
Generated helmchart: