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

More flexible SpaceWarp dependency checking #3858

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

HebaruSan
Copy link
Member

Motivations

Some KSP2 modules have started using a new format for the dependencies list in swinfo.json, and a few don't match the capitalization of the identifier in CKAN:

image

Currently we warn if the string doesn't match the identifier of any value in the depends list, so these will always warn even if you have SpaceWarp or UITKforKSP2 in there.

Changes

Now we remove characters up to and including the final ., then perform a case-insensitive comparison. This will produce fewer false positive warnings.

I might self-review this since it's just a Netkan warning.

@HebaruSan HebaruSan added Enhancement New features or functionality Easy This is easy to fix Netkan Issues affecting the netkan data labels Jul 20, 2023
@HebaruSan HebaruSan merged commit 05a67aa into KSP-CKAN:master Jul 20, 2023
@HebaruSan HebaruSan deleted the fix/sw-dep-warning branch July 20, 2023 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy This is easy to fix Enhancement New features or functionality Netkan Issues affecting the netkan data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant