Skip to content

Commit 99abdfa

Browse files
committed
Auto merge of #62279 - pietroalbini:fix-azure-crlf, r=alexcrichton
ci: explicitly disable CRLF conversion on Windows The Azure image enables CRLF conversion on Windows builders, but that caused regressions both in our test suite (the miri test suite broke) and in the ecosystem, since we started shipping install scripts with CRLF endings instead of the old LF. The [Godbolt Compiler Explorer](https://godbolt.org/) is one such case of breakage. This adds a step to the build explicitly disabling the conversion before the repository is checked out. r? @alexcrichton cc @gnzlbg
2 parents 17e62f7 + 239a404 commit 99abdfa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.azure-pipelines/steps/run.yml

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
steps:
1010

11+
# Disable automatic line ending conversion, which is enabled by default on
12+
# Azure's Windows image. Having the conversion enabled caused regressions both
13+
# in our test suite (it broke miri tests) and in the ecosystem, since we
14+
# started shipping install scripts with CRLF endings instead of the old LF.
15+
- bash: git config --global core.autocrlf false
16+
displayName: "Disable git automatic line ending conversion"
17+
1118
- checkout: self
1219
fetchDepth: 2
1320

0 commit comments

Comments
 (0)