-
Notifications
You must be signed in to change notification settings - Fork 57
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
CI over Windows #207
CI over Windows #207
Conversation
Makes for shorter roundtrip while doing the ol' pull-request-push-crash-fix-rinse-and-repeat
Nice opportunity to check if the caching mechanism was well introduced
@@ -374,7 +374,12 @@ find_file_and_check_src(_Config) -> | |||
[] = elvis_file:find_files(Dirs, "doesnt_exist.erl"), | |||
[File] = elvis_file:find_files(Dirs, "small.erl"), | |||
|
|||
{<<"-module(small).\n">>, _} = elvis_file:src(File), | |||
{<<"-module(small).", LineBreak/binary>>, _} = elvis_file:src(File), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
= case os:type() of | ||
{unix, _} -> <<"\n">>; | ||
{win32, _} -> <<"\r\n">> | ||
end, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ This approach will not work as expected if someone clones the elvis_core
repo with auto-conversion from \n
to \n\r\
disabled, but that should be a very rare occurrence (and people developing Erlang on Windows are already rare enough to start with)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I thought about that edge case, but was mostly interested in the CI. If it breaks for somebody we'll deal with it then.
HopefullyCloses #180.