Set core.longpaths=true in git in GitHub Actions #974
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Android builds in Windows GitHub Actions runners was curiously failing with "firestore_errors.h file not found" errors (e.g. https://github.com/firebase/firebase-cpp-sdk/runs/6387651127). It turned out that this was because the cloning of the https://github.com/firebase/firebase-ios-sdk repository was failing due to such a deeply-nested filesystem hierarchy that it exceeded the maximum path lengths.
The fix in this PR enables "long paths" support in Git to disable this troublesome limitation by running
Here is one explanation of this fix: https://stackoverflow.com/a/72187507
Credit for this fix goes completely to @wu-hui (#967). I'm merely porting it to the
main
branch.