Add helpful message for when `git` is not installed
Prof-Bloodstone opened this issue · comments
Prof-Bloodstone commented
Currently Paperweight doesn't check whether git
is installed, resulting in a bit cryptic error:
$ ./gradlew applyPatches
<CRAP>
FAILURE: Build failed with an exception.
* Where:
Build file '/root/Paper/build.gradle.kts' line: 1
* What went wrong:
An exception occurred applying plugin request [id: 'io.papermc.paperweight.core', version: '1.1.6']
> Failed to apply plugin 'io.papermc.paperweight.core'.
> Failed to call git command: git -c commit.gpgsign=false -c core.safecrlf=false submodule update --init
* 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
BUILD FAILED in 1m 27s
If paperweight depends on other tools to be installed (patch
perhaps?), it'd be good to handle them too.