Skip to content

fix: trim CRLF and whitespace from version.txt for cross-platform compatibility #21

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

btoonk
Copy link

@btoonk btoonk commented Jul 16, 2025

Replaces TrimSuffix with TrimSpace in parseCockroachVersion to correctly handle Windows-style line endings (\r\n) and other trailing whitespace. This prevents version parsing errors when version.txt contains CRLF line endings.

…patibility

Replaces TrimSuffix with TrimSpace in parseCockroachVersion to correctly handle
Windows-style line endings (\r\n) and other trailing whitespace. This prevents
version parsing errors when version.txt contains CRLF line endings.
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.

1 participant