-
Notifications
You must be signed in to change notification settings - Fork 65
blang/semver ParseRange fails to handle prereleases containing x #123
Copy link
Copy link
Closed
Labels
bugThis issue describes a defect or unexpected behaviorThis issue describes a defect or unexpected behaviorcarvel-acceptedThis issue should be considered for future work and that the triage process has been completedThis issue should be considered for future work and that the triage process has been completedpriority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Metadata
Metadata
Assignees
Labels
bugThis issue describes a defect or unexpected behaviorThis issue describes a defect or unexpected behaviorcarvel-acceptedThis issue should be considered for future work and that the triage process has been completedThis issue should be considered for future work and that the triage process has been completedpriority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Type
Projects
Status
Closed
What steps did you take:
Run
vendir tools sort-semver -v '1.1.0 1.1.1' --constraint '1.1.0-fox'What happened:
What did you expect:
The version
1.1.0-foxshould be a valid semver version and not result in the error above.Anything else you would like to add:
This error can be traced back to the
blang/semverlibrary used by vendir: https://github.com/vmware-tanzu/carvel-vendir/blob/7a076ecfdfcfc6c2cac23e1b439829da1727369f/pkg/vendir/versions/semvers.go#L76An issue/pr to the library has been made to blang/semver. If the response to the pr moves slow, we can add the fix to the k14s/semver fork.
Environment:
vendir --version): v0.23.0/etc/os-release): N/AVote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.