mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
disable autocrlf on Windows jobs
Summary:
In D36905191 (6e6bf12f62
), getdeps gained the ability to apply patches on Windows.
However, on GitHub Action workers, `core.autocrlf` is turned on by default. This means the patch files we checked in will end up having CRLF endings while the source code we downloaded are still in LF endings, and `git apply` doesn't like that.
This diff teaches getdeps to disable `core.autocrlf` in GitHub Action Windows workers.
Reviewed By: vitaut
Differential Revision: D37008387
fbshipit-source-id: 34c9f89e8783d0613040d190c4ad3477bd7bfd53
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9f94d187ec
commit
6495a90f93
@@ -973,7 +973,6 @@ jobs:
|
||||
out.write(" build:\n")
|
||||
out.write(" runs-on: %s\n" % runs_on)
|
||||
out.write(" steps:\n")
|
||||
out.write(" - uses: actions/checkout@v2\n")
|
||||
|
||||
if build_opts.is_windows():
|
||||
# cmake relies on BOOST_ROOT but GH deliberately don't set it in order
|
||||
@@ -994,6 +993,10 @@ jobs:
|
||||
# that we want it to use them!
|
||||
out.write(" - name: Fix Git config\n")
|
||||
out.write(" run: git config --system core.longpaths true\n")
|
||||
out.write(" - name: Disable autocrlf\n")
|
||||
out.write(" run: git config --system core.autocrlf false\n")
|
||||
|
||||
out.write(" - uses: actions/checkout@v2\n")
|
||||
|
||||
allow_sys_arg = ""
|
||||
if (
|
||||
|
Reference in New Issue
Block a user