Skip to content
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

Ignore conflicts between versions of same mod #2430

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Apr 27, 2018

Problem

If a mod conflicts with itself, it can no longer be upgraded as of #2339; see #2428 for details of a specific example involving Scatterer.

Cause

When we upgrade, we ask the SanityChecker to look for missing dependencies and conflicts in a scenario in which the new versions are installed without removing the old versions. Since the old and new modules are both there, we check whether they conflict with one another, and a self-conflict is treated as a real conflict.

Prior to #2339, this was avoided by ignoring conflicts if the identifiers were the same, but when we made conflicts version-specific, we only ignored that conflict if the identifier and version are the same.

Changes

Now SanityChecker will ignore any conflict between two mods with the same identifier, as it did historically. Other conflicts will still care about versions, so #2339 is not voided.

A test is added to catch regressions.

Fixes #2428.

@HebaruSan HebaruSan added Bug Something is not working as intended Pull request Relationships Issues affecting depends, recommends, etc. and removed Bug Something is not working as intended labels Apr 27, 2018
@HebaruSan HebaruSan force-pushed the fix/self-conflict-upgrade branch from 50a8056 to 9472385 Compare April 27, 2018 00:22
@politas politas merged commit 9472385 into KSP-CKAN:master Apr 27, 2018
politas added a commit that referenced this pull request Apr 27, 2018

Verified

This commit was signed with the committer’s verified signature.
@politas politas removed Bug Something is not working as intended Pull request labels Apr 27, 2018
@HebaruSan HebaruSan deleted the fix/self-conflict-upgrade branch April 27, 2018 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Relationships Issues affecting depends, recommends, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants