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

Add Aspect to ModAnalyzer to detect patch manager patches #317

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

cheese3660
Copy link
Contributor

Motivation

A mod has been released for KSP2, PatchManager, that uses special files (.patch files) to either patch data in the addressables for the game, and/or add new data to the addressables assets. any KSP2 mod that use files with this extension necessarily depend on this mod, examples being CommunityResources, or KerbalLifeSupportSystem. So it would make sense for them to be autodetected to add PatchManager as a dependency to the mods via the ModAnalyzer class.

Changes

Adds an aspect to the ModAnalyzer class that detects *.patch files, and adds the config tag (closest tag to match for what patch files are), and adds a dependency on PatchManager

This adds an aspect to the aspects in the ModAnalyzer class that should detect patch manager patches (*.patch files), and automatically add the config tag, and a dependency on PatchManager
@HebaruSan HebaruSan added Enhancement New feature or request good first issue Good for newcomers SpaceDock Adder Receives indexing requests and generates PRs. labels Nov 8, 2023
Copy link
Member

@HebaruSan HebaruSan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously this code change is correct, but I'm going to dig into why the tests are emitting errors now... (This happens regularly; dependencies or Python tools get updated and new errors appear where previously there were none, and we try to keep up with these as new code changes are made so they don't accumulate.)

@HebaruSan HebaruSan self-requested a review November 8, 2023 21:04
@HebaruSan HebaruSan merged commit 7d58417 into KSP-CKAN:master Nov 9, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request good first issue Good for newcomers SpaceDock Adder Receives indexing requests and generates PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants