From 83d65ba8f5eae7ed9714e3d025603ad46fd76a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Wed, 20 Jan 2021 16:46:15 +0100 Subject: [PATCH] Disable git's automatic line ending conversion in Windows CI jobs --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6901ece29..cf99b9b95 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -844,6 +844,7 @@ jobs: name: win/default shell: powershell.exe steps: + # NOTE: Not disabling git's core.autocrlf here because we want to build using the typical Windows config. - checkout - restore_cache: keys: @@ -880,6 +881,8 @@ jobs: name: win/default shell: powershell.exe steps: + # NOTE: Git's default core.autocrlf is fine for running soltest. We get additional coverage + # for files using CRLF that way. - checkout - attach_workspace: at: build @@ -932,6 +935,9 @@ jobs: name: win/default shell: cmd.exe steps: + # NOTE: For bytecode generation we need the input files to be byte-for-byte identical on all + # platforms so line ending conversions must absolutely be disabled. + - run: git config --global core.autocrlf false - checkout - attach_workspace: at: build