I had this issue when building our fork with paperweight.
I executed ./gradlew applyPatches in Git bash.
> Task :tuinity:paper:patchCraftBukkit FAILED
> Task :tuinity:getPaperUpstreamData FAILED
> Task :getTuinityUpstreamData FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':tuinity:paper:patchCraftBukkit'.
> io.papermc.paperweight.PaperweightException: Command finished with 128 exit code: git -c commit.gpgsign=false -c core.safecrlf=false apply --ignore-whitespace --directory=src/main/java ...Tuinity1.17\.gradle\caches\paperweight\upstreams\paper\.gradle\caches\paperweight\taskCache\patchCraftBukkitPatches.zip--1588702556\net\minecraft\world\entity\ai\goal\target\PathfinderGoalNearestAttackableTarget.patch
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
After trying to run the command manually, git tells me that the filename is too long.
The solution is to enable the following option in Git:
git config --global core.longpaths true
I had this issue when building our fork with paperweight.
I executed ./gradlew applyPatches in Git bash.
After trying to run the command manually, git tells me that the filename is too long.
The solution is to enable the following option in Git:
git config --global core.longpaths true