Kir-Antipov / sync-fabric

One mind. Many bodies.
MIT License
17 stars 13 forks source link

Building from source failed #44

Open TheDimensionofEternity opened 6 months ago

TheDimensionofEternity commented 6 months ago

What happened?

I followed the steps provided to build from sources on both windows and linux (WSL) but was unable to build the project. I have attached the output from the terminal. I've gone to https://ladysnake.jfrog.io/artifactory/mods/io/github/ladysnake/satin/1.9.0/satin-1.9.0.pom and it redirects me to the landing page for jfrog, mentioning how their free subscription has been deactivated. For now I'll download the already built project, but I figured it might be helpful to report this issue.

Version

4.3

Minecraft Version

1.19.2

Fabric API Version

none

Installation Source

Other

Logs

user@ubuntu-wsl:~/sync-fabric$ ./gradlew build

> Configure project :
Fabric Loom: 0.12.56
[Fatal Error] smart-recipes-0.2.1+1.19.pom:2:10: Already seen doctype.
[Fatal Error] crowdin-translate-1.4+1.19-pre2.pom:2:10: Already seen doctype.
[Fatal Error] cloth-config-fabric-8.0.75.pom:2:10: Already seen doctype.
[Fatal Error] satin-1.9.0.pom:2:10: Already seen doctype.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'sync-fabric'.
> Could not resolve all dependencies for configuration ':modImplementation'.
   > Could not resolve io.github.ladysnake:satin:1.9.0.
     Required by:
         project :
      > Could not resolve io.github.ladysnake:satin:1.9.0.
         > Could not parse POM https://ladysnake.jfrog.io/artifactory/mods/io/github/ladysnake/satin/1.9.0/satin-1.9.0.pom
            > Already seen doctype.

* 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 3s

Other Mods

No response

Additional Information

No response

TheDimensionofEternity commented 6 months ago

(I have continued working on this because IDK) I've modified the gradle.build file according to LadySnake/Satin but run into a new issue with com.github.DaFuqs:AdditionalEntityAttributes:95f13798d1

user@ubuntu-wsl:~/sync-fabric$ ./gradlew build --refresh-dependencies

> Configure project :
Fabric Loom: 0.12.56
Refresh dependencies is in use, loom will be significantly slower.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'sync-fabric'.
> Could not resolve all dependencies for configuration ':modCompileOnly'.
   > Could not find com.github.DaFuqs:AdditionalEntityAttributes:95f13798d1.
     Searched in the following locations:
       - file:/home/user/sync-fabric/.gradle/loom-cache/remapped_mods/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://maven.fabricmc.net/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://libraries.minecraft.net/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://libraries.minecraft.net/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.jar
       - https://repo.maven.apache.org/maven2/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - file:/home/user/.gradle/caches/fabric-loom/95f13798d1/AdditionalEntityAttributes.jar
       - file:/home/user/sync-fabric/.gradle/loom-cache/95f13798d1/AdditionalEntityAttributes.jar
       - https://maven.terraformersmc.com/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://oss.sonatype.org/content/repositories/snapshots/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://minecraft.guntram.de/maven/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
       - https://jitpack.io/com/github/DaFuqs/AdditionalEntityAttributes/95f13798d1/AdditionalEntityAttributes-95f13798d1.pom
     Required by:
         project : > com.github.apace100:apoli:2.5.0

* 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 6s
Kir-Antipov commented 6 months ago

So, this dependency hell has finally crumbled, huh?

You can remove dependencies on satin-api and haema by reverting 0c55e883986d38e69342ff70f7708394fa05369d and 59209f364f33902a4188e997f8d272137a0a78ec, respectively. This is what I plan to do anyways, because though these changes were intended to improve the state of things, they ended up exacerbating the situation in the long run.

As for com.github.DaFuqs:AdditionalEntityAttributes, required by apoli, which is subsequently required by origins (nobody writes self-sufficient mods nowadays), the aforementioned commit at DaFuqs/AdditionalEntityAttributes@95f13798d1b92a2265190e9eb8a82dc50d3c3bae still exists. However, JitPack returns a 404 on it for some reason. I think that it might be because of some sort of expiry mechanism on their end.

Thus, if you want to build the mod from sources while maintaining compatibility with Origins, I believe the only solution at the moment is to build AdditionalEntityAttributes and add the resulting artifacts to a local maven repository ¯\(ツ)

Otherwise, just nuke origins and other bloatware and you should be fine.