Skip to content

Commit 4cc558f

Browse files
committed
Disable autocrlf in CI
This messes up line endings on Windows and IMO should never be used.
1 parent 208b3d4 commit 4cc558f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ jobs:
5454
rustup target add x86_64-unknown-linux-musl
5555
musl-gcc --version
5656
57+
# By default the Windows runner has autocrlf set which causes CRLF
58+
# line endings and the whitespace linter removes them so linting fails.
59+
# IMO autocrlf is an abomination and you should set it to `input` on Windows
60+
# which will not convert on checkout, and will automatically convert
61+
# CRLF to LF on commit so you don't accidentally add CRLF line endings.
62+
- name: Disable autocrlf
63+
run : git config --global core.autocrlf input
64+
5765
- uses: actions/checkout@v4
5866

5967
- name: Versions

0 commit comments

Comments
 (0)