From 3b67c5abb0033b2cf8291eaa8de31e88783e4472 Mon Sep 17 00:00:00 2001 From: Simon Brandeis <33657802+SBrandeis@users.noreply.github.com> Date: Tue, 12 Jan 2021 10:15:16 +0100 Subject: [PATCH] Update 'Develop on Windows' guidelines (#9519) --- CONTRIBUTING.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2e3d031d9d3..2913bd61ac8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -328,11 +328,18 @@ for more information. ### Develop on Windows +On windows, you need to configure git to transform Windows `CRLF` line endings to Linux `LF` line endings: + +`git config core.autocrlf input` + One way one can run the make command on Window is to pass by MSYS2: 1. [Download MSYS2](https://www.msys2.org/), we assume to have it installed in C:\msys64 2. Open the command line C:\msys64\msys2.exe (it should be available from the start menu) 3. Run in the shell: `pacman -Syu` and install make with `pacman -S make` +4. Add `C:\msys64\usr\bin` to your PATH environment variable. + +You can now use `make` from any terminal (Powershell, cmd.exe, etc) 🎉 ### Syncing forked master with upstream (HuggingFace) master