Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: changed how we extract major.minor from pandoc semver as they do… #50

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

cdsre
Copy link
Contributor

@cdsre cdsre commented Nov 29, 2024

Issue #48 reports a failure in CTK-reporting when it tries to extract the major and minor versions from the pandoc semver string. The issue is that not all releases have the semver pattern of major.minor.patch. As a result if you are running pandoc latest realease version 3.5 then CTK-reporing will fail as there are not enough values to unpack since there is no patch part to the semver version.

This fix changed how we extract and instead just unpacks major and minor into variables using a slice. This should be fine as we were just throwing away the rest of the semver string anyway.

…nt always use a full major.minor.patch semver and we just throw away anything after minor anyway.

Signed-off-by: Chris Doyle <[email protected]>
Copy link
Contributor

@Lawouach Lawouach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Lawouach Lawouach merged commit 8ac6ee9 into chaostoolkit:master Dec 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants