Skip to content

Commit

Permalink
ci: explicitly disable CRLF conversion on Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pietroalbini committed Jul 1, 2019
1 parent 6ea4036 commit 239a404
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .azure-pipelines/steps/run.yml
Expand Up @@ -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

Expand Down

0 comments on commit 239a404

Please sign in to comment.