Recommendation suppression for modpacks #4147
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Currently, in order to install the exact list of mods in a modpack, the user has to deselect the recommendations of all the mods. It would be nice to be able to skip this step.
It looks like setting
suppress_recommendations
for each item in thedepends
list should work, but it doesn't because those items get added as first class members of the changeset, which causes that property to be ignored in the modpack.A similar thing can happen in a normal changeset; if A and B are in the changeset, and both depend on C but only A has
suppress_recommendations
set, B's lack of the property will mean that C's recommendations are still shown. That probably frustrates the author of A, especially if they're from KSP-RO.Changes
suppress_recommendations
is obeyed if it is set for anydepends
relationship in the changeset, even if other mods have the same dependency without that property or if the dependency is in the changeset itself.depends[].suppress_recommendations
in a modpack will now work.suppress_recommendations
for every relationship independs
if unchecked, to make it easy to generate such metadata.Fixes #4145.