Skip to content

Conversation

@medyagh
Copy link
Member

@medyagh medyagh commented Jan 15, 2026

This PR added windows test and I noticed tests were failing so I fixed the tests too

minikube will be moving to use this library and we would like to ensure it has good testing coverage on windows. kubernetes/minikube#22456

The mustParseGolden helper reads the testdata/diffs golden file to verify test output. On Windows, where files are often checked out with CRLF line endings, the existing parser failed to correctly handle the carriage return (\r), leading to incorrect header keys (e.g., Key\r) and mismatched values.

This patch adds a normalization step to replace all \r\n sequences with \n immediately after reading the file. This ensures the parser works consistently regardless of the OS or Git line-ending configuration.

@medyagh
Copy link
Member Author

medyagh commented Jan 15, 2026

would you plz review neild

…is will ensure the diff command with process substitution runs correctly on Windows
…e gofmt failure on Windows. Please push the changes and check the CI again.
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