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: Version parse caused by line breaks on different platforms #3672

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

idhyt
Copy link
Contributor

@idhyt idhyt commented Feb 20, 2025

Description

Under windows platform, conanfile.txt has a line break of \r\n, so the parsed version number will have '\r', this problem does not exist under unix platform.

  • Fixes

Checklist:

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

Under windows platform, `conanfile.txt` has a line break of `\r\n`, so the parsed version number will have '\r', this problem does not exist under unix platform.

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

@kzantow kzantow left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @idhyt!

@kzantow kzantow merged commit 52bd4ac into anchore:main Feb 20, 2025
12 checks passed
@kzantow kzantow added the bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants