-
-
Notifications
You must be signed in to change notification settings - Fork 26
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: replace \r\n
with \n
on windows
#73
fix: replace \r\n
with \n
on windows
#73
Conversation
Interesting issue! I've definitely not seen anyone else report this before. I don't think this is particularly a bug in What I think you're running into is this problem: actions/checkout#135
before checkout, Alternatively I think you can set only your snapshot files to remain un-modified using a .gitattributes file: https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings#per-repository-settings Could you try and see if one of those fixes the problem? |
True, that should fix it. Test run: https://github.com/ory/x/pull/412/checks?check_run_id=3952501267 |
I will add a section to the README in case that fixes the problem. |
This reverts commit 8f89419.
So yeah, setting the git config fixed it. I added a short debug help section to the readme. |
Amazing thanks for adding that 🙂 just one tiny comment: it looks like you linked the same GitHub Actions issue twice? |
cd20354
to
72eb39b
Compare
Ah, wanted to link this PR 😅 fixed it |
Thanks @zepatrik ❤️ |
Depending on how you setup git on windows, it might convert between line separators. For Github actions it seems to be the case that
\n
is replaced by\r\n
, as we have a constant failure here: https://github.com/ory/x/runs/3937200972 but the content is identical when copied and compared via diff.In contrast, a run with this fix as a replacement succeeds: https://github.com/ory/x/runs/3937395472