-
Notifications
You must be signed in to change notification settings - Fork 50
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
golden: CRLF normalization conflicts with git core.autocrlf #146
Comments
@vdemeester @silvin-lubecki You've both contributed windows fixes for this type of thing. Have you ever run into this problem? Do you turn |
As fas as I remember, I fixed a similar issue with #105 If I read the code correctly, the Maybe we should introduce some |
I think the idea is that we should always store the golden file with The problem in this issue is that
I think a better option would be to remove the |
Is the question for me? 🤔
|
Thanks @silvin-lubecki @marcomorain: maybe we set that value in I've opened a proposal for a change in #149, but the gitattributes change is likely a faster option. |
👋 Thank you for working on golden ❤️
We are hitting some unexpected behaviour using golden on Windows. Strings are not being compared as I would expect. Here is some example output:
What I think is happening is that, on Windows,
git
will by default, automatically convert newline characters to CRLF on checkout (core.autocrlf
).So although golden converts the
actual
string to remove CR characters, it does not strip the CR characters from theexpected
string.The text was updated successfully, but these errors were encountered: