Skip to content

Force LF checkout of goldens so tests pass on Windows clones - #3

Open
MrTig-afk wants to merge 1 commit into
nitrosend:mainfrom
MrTig-afk:fix/goldens-line-endings
Open

Force LF checkout of goldens so tests pass on Windows clones#3
MrTig-afk wants to merge 1 commit into
nitrosend:mainfrom
MrTig-afk:fix/goldens-line-endings

Conversation

@MrTig-afk

Copy link
Copy Markdown

A fresh clone on Windows with the default core.autocrlf=true fails 59 of 157 tests: git converts the committed golden .mjml files to CRLF on checkout, the renderer emits LF, and every byte comparison fails.

Fix: a four-line .gitattributes pinning .mjml, .md, and .json to LF. Repository blobs are already LF throughout, so nothing renormalizes.

Verification: fresh Windows clone before the change fails 59/157; with the change, 157/157 pass.

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