-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusion about mismatched/duplicated project slugs #15
Comments
One solution is to replace the wrong slug in the lock file with the correct slug. |
Pakku could ask before assuming the other slug is correct. I will see what I can do. |
Putting this here to document some more mods that have the same issue cause The Iris Shader Mod has the same issue but causes the program to crash entirely: ❯❯❯ {cf=irisshaders} was not found on Modrinth.
Specify Modrinth: iris teksturepako.pakku.api.data.PakkuException: Can not combine two projects of different type! Project(pakkuId=iE8eT4slmi54hPf1, pakkuLinks=[], type=WORLD, side=null, slug={curseforge=iris}, name={curseforge=Iris}, id={curseforge=715898}, updateStrategy=LATEST, redistributable=false, files=[]) WORLD + Project(pakkuId=sHj18EhUXxDFNQN5, pakkuLinks=[], type=MOD, side=CLIENT, slug={modrinth=iris}, name={modrinth=Iris Shaders}, id={modrinth=YL57xq9U}, updateStrategy=LATEST, redistributable=true, files=[]) MOD
at teksturepako.pakku.api.projects.Project.plus(Project.kt:49)
at teksturepako.pakku.api.platforms.Multiplatform.requestProject(Multiplatform.kt:50)
at teksturepako.pakku.api.platforms.Multiplatform$requestProject$1.invokeSuspend(Multiplatform.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at teksturepako.pakku.cli.cmd.Import.run(Import.kt:33)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:306)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:319)
at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:40)
at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:458)
at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:455)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:475)
at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:482)
at teksturepako.pakku.MainKt.main(Main.kt:31)
Error: Modrinth kotlin.Unit Reason is because on Curseforge the Iris mod has the slug On Modrinth the Iris Shader Mod has the slug |
Thanks. This is a good reminder that the exception should be an error instead. |
Released in v0.16.0. |
I'm in the process of setting up a multiplatform project and stumbled across this issue with the "Chameleon" mod.
Essentially, the program is getting confused when the project slug for a mod is used by another mod on the other platform.
Probably easiest to understand if I give an example:
The Chameleon mod on Curseforge has the
chameleon
slug, while the same Chameleon mod on Modrinth has thetexel-chameleon
slug.The issue is that on Modrinth, there is another Mod that has the
chameleon
slug, causing the program to do weird things.The interesting part is what gets written to the pakku-lock.json
add
commandIt probably doesn't help that the author uploaded two different files
The text was updated successfully, but these errors were encountered: