HiveGamesOSS / Chunker

Convert Minecraft worlds between Java Edition and Bedrock Edition
https://oss.chunker.app/
MIT License
282 stars 13 forks source link

Build Failed: Process 'command 'git'' finished with non-zero exit value 128 #146

Closed InternetNinjo closed 4 hours ago

InternetNinjo commented 5 days ago

Chunker Version

1.4.0

Platform / Operating System

Windows 10

Issue Description

This is the build scan it generated as per --scan parameter

https://scans.gradle.com/s/xwtx5pglpi62i

I don't fully understand how build things work but i wanted to try to built it myself

FormallyMyles commented 5 days ago

Would you mind answering the following:

From guessing, the cause is it's trying to pull the git info but doesn't have it because it wasn't cloned.

InternetNinjo commented 4 days ago

Would you mind answering the following:

* Do you currently have git setup on your machine / did you clone the repo using `git clone git://github.com/HiveGamesOSS/Chunker.git`?

* What build command did you run?

From guessing, the cause is it's trying to pull the git info but doesn't have it because it wasn't cloned.

Sorry about the late response,

1) i've tried via both downloading as zip and the git clone command, and yes i have git setup. 2) ./gradlew build

Unsure why git failed with non-zero exit value 128

FormallyMyles commented 4 days ago

If you run the following command while in the directory git describe --tags --always what does it output?

InternetNinjo commented 3 days ago

git describe --tags --always

1.4.0

My time is IST so you might have to expect late replies

FormallyMyles commented 2 days ago

If you're able to, would you mind opening this file locally https://github.com/HiveGamesOSS/Chunker/blob/86becbf5a59a9a527a009e376dbc69e6d2fe3136/cli/build.gradle.kts#L110 (cli/build.gradle.kts)

and testing Line 110 with the following: commandLine("cmd", "git", "branch", "--show-current")

and Line 116 with the following: commandLine("cmd", "git", "describe", "--tags", "--always")

Then trying to build it again via ./gradlew build, this is based on this stackoverflow answer https://stackoverflow.com/a/51644353 which seems to suggest adding "cmd" might fix it for some windows versions :)

InternetNinjo commented 2 days ago

commandLine("cmd", "git", "describe", "--tags", "--always")

going to try those lines, cmd seems to be working too but slower than powershell preview 7

PowerShell EDIT: Build Failed

> Task :cli:compileJava FAILED
[Incubating] Problems report is available at: file:///C:/Users/InternetNinja/Chunker/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cli:compileJava'.
> Error while evaluating property 'javaCompiler' of task ':cli:compileJava'.
   > Failed to calculate the value of task ':cli:compileJava' property 'javaCompiler'.
      > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any vendor, implementation=vendor-specific} for WINDOWS on x86_64.
         > No locally installed toolchains match and toolchain download repositories have not been configured.

* Try:
> Learn more about toolchain auto-detection at https://docs.gradle.org/8.11.1/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.11.1/userguide/toolchains.html#sub:download_repositories.
> 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.11.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 27s
4 actionable tasks: 2 executed, 2 up-to-date

CMD

> Task :cli:compileJava FAILED
[Incubating] Problems report is available at: file:///C:/Users/InternetNinja/Chunker/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cli:compileJava'.
> Error while evaluating property 'javaCompiler' of task ':cli:compileJava'.
   > Failed to calculate the value of task ':cli:compileJava' property 'javaCompiler'.
      > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any vendor, implementation=vendor-specific} for WINDOWS on x86_64.
         > No locally installed toolchains match and toolchain download repositories have not been configured.

* Try:
> Learn more about toolchain auto-detection at https://docs.gradle.org/8.11.1/userguide/toolchains.html#sec:auto_detection.
> Learn more about toolchain repositories at https://docs.gradle.org/8.11.1/userguide/toolchains.html#sub:download_repositories.
> 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.11.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 3s
4 actionable tasks: 2 executed, 2 up-to-date

ERROR File: problems-report.zip github won't accept html

FormallyMyles commented 1 day ago

The project uses Java 17 when building for consistency, you can optionally change https://github.com/HiveGamesOSS/Chunker/blob/main/cli/build.gradle.kts#L46 to your Java version.

InternetNinjo commented 4 hours ago

The project uses Java 17 when building for consistency, you can optionally change https://github.com/HiveGamesOSS/Chunker/blob/main/cli/build.gradle.kts#L46 to your Java version.

well i don't think i can build it anyway, thanks for the support, closing