From e4988dce8226c0557ec582884d87e3c3c8ef3c8f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 26 Mar 2020 05:46:49 -0700 Subject: [PATCH] getdeps: fix git configuration on windows Summary: The GH actions defaults for git prevent it from being able to checkout the fbthrift repo due the length of the java related files in the fbthrift repo. This commit tells git to use long filenames and allows the checkout to succeed. Reviewed By: fanzeyi Differential Revision: D20659750 fbshipit-source-id: 060b36d312d52a0769cf2f2dd9af60f7446f94a8 --- build/fbcode_builder/getdeps.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py index c4fe0e1c1..d9e3c3f64 100755 --- a/build/fbcode_builder/getdeps.py +++ b/build/fbcode_builder/getdeps.py @@ -629,6 +629,12 @@ jobs: out.write(" steps:\n") out.write(" - uses: actions/checkout@v1\n") + if build_opts.is_windows(): + # The git installation may not like long filenames, so tell it + # that we want it to use them! + out.write(" - name: Fix Git config\n") + out.write(" run: git config --system core.longpaths true\n") + projects = loader.manifests_in_dependency_order() for m in projects: