-
-
Notifications
You must be signed in to change notification settings - Fork 345
CKAN tests mod version interdependencies incorrectly #1693
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
Comments
* Adding changes that only build correctly after a v1.3 release. * Noted compatibility with ART and DOS. Note: ART is not currently on CKAN; I'm guessing the mod identifier would match the folder name. * Added KSP-AVC as a suggested install. * Updated conflict list List based on case-by-case analysis of 44 planet packs. Non-CKAN packs (Boris System, Chani Planet Pack, Jungis Planet Pack, Stock-Alike Solar System) listed for forward compatibility, using a best guess at their eventual CKAN identifier. * Corrected identifier for ART. * Need spec 1.2+ to use supports. * Temporary workaround for KSP-CKAN/CKAN#1693. Closes #3841. * Workaround permanent for compatibility with old clients.
Possible alternate title: "Reverse dependencies are checked too late" |
No objections to the renaming. I wrote the original title in a behavior-oriented way because I don't know anything about CKAN's internals. |
Well for now this is just my notes-to-self, so I can pick up where I left off in the future. I could be mistaken about any of this. This is the line where the RR effectively narrows us down to just one version of a mod, without checking reverse dependencies: CKAN/Core/Relationships/RelationshipResolver.cs Lines 407 to 408 in c49489b
We would need something like:
I guess that second option sounds more reasonable. |
@Starstrider42, I think I've got this figured out as part of #2660. These are the relevant tests, if you wouldn't mind double checking that I've understood the problem accurately: CKAN/Tests/Core/Relationships/RelationshipResolver.cs Lines 726 to 807 in d48fad4
|
I think so? You've removed the KSP versioning aspect of the original issue by forcing a specific version of |
Bug report as requested by @plague006 on KSP-CKAN/NetKAN#3841.
CKAN Version: v1.16.1-0-g2e91715 (beta)
Operating System: Windows 10 KP
The issue you are experiencing: The Custom Asteroids config file .ckans each depend on a minimum version of Custom Asteroids, but have a much broader range of KSP versions. Currently the dependencies are:
The intended behavior is that Pops-Stock-Inner v1.3.0 gets installed if you have Custom Asteroids v1.3.0, and v1.2.0 gets installed if you have any older version.
However, trying to install Custom Asteroids for KSP 1.0.5 (Custom Asteroids v1.2.0), which requires Pops-Stock-Inner as a dependency, causes CKAN to report a conflict between Pops-Stock-Inner v1.3.0 and Custom Asteroids v1.2.0. There is no option to download Pops-Stock-Inner v1.2.0, even though it is compatible with both KSP 1.0.5 and Custom Asteroids v1.2.0 and would satisfy Custom Asteroids's config dependency.
How to recreate this issue: (I will shortly be modifying
CustomAsteroids-Pops-*.netkan
to work around this issue, so the original example can't be used. The issue should be reproducible with any mod that depends on a newer version of a currently installed mod.)The text was updated successfully, but these errors were encountered: