about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-07-01 21:57:08 +0200
committerPietro Albini <pietro@pietroalbini.org>2019-07-01 21:57:08 +0200
commit239a404cae1bebbd0fe6e01688e8cf94be3a6c52 (patch)
tree9a0928295327c29fd177baf99e6577499df612c3
parent6ea4036cd20a4b1ab1d56e555108c21735ff6946 (diff)
downloadrust-239a404cae1bebbd0fe6e01688e8cf94be3a6c52.tar.gz
rust-239a404cae1bebbd0fe6e01688e8cf94be3a6c52.zip
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 is one
such case of breakage.

This adds a step to the build explicitly disabling the conversion before
the repository is checked out.
-rw-r--r--.azure-pipelines/steps/run.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.azure-pipelines/steps/run.yml b/.azure-pipelines/steps/run.yml
index 271f9d382ff..1ece3ceb088 100644
--- a/.azure-pipelines/steps/run.yml
+++ b/.azure-pipelines/steps/run.yml
@@ -8,6 +8,13 @@
 
 steps:
 
+# Disable automatic line ending conversion, which is enabled by default on
+# Azure's Windows image. Having the conversion enabled caused regressions both
+# in our test suite (it broke miri tests) and in the ecosystem, since we
+# started shipping install scripts with CRLF endings instead of the old LF.
+- bash: git config --global core.autocrlf false
+  displayName: "Disable git automatic line ending conversion"
+
 - checkout: self
   fetchDepth: 2