Skip to content

add < and > to dependency version operators#402

Merged
Shivansps merged 1 commit intoKnossosNET:mainfrom
Goober5000:feature/more_operators
May 10, 2026
Merged

add < and > to dependency version operators#402
Shivansps merged 1 commit intoKnossosNET:mainfrom
Goober5000:feature/more_operators

Conversation

@Goober5000
Copy link
Copy Markdown
Contributor

SastifiesDependency now supports strict-less and strict-greater in addition to the existing ~, >=, <=. Dev mod editor pickers now expose <=, >, and < (the first was already supported but unexposed, the latter two are new).

Also fixes two latent bugs that mishandled the new operators:

  • InstallMod's FSO compression check missed <= and ~ in its strip chain, silently parsing to 0.0.0
  • Mod.FilterDependencies miscategorized non-(>=, ~) deps as exact matches; they now pass through dedup unchanged

SastifiesDependency now supports strict-less and strict-greater in
addition to the existing ~, >=, <=. Dev mod editor pickers now
expose <=, >, and < (the first was already supported but unexposed,
the latter two are new).

Also fixes two latent bugs that mishandled the new operators:
- InstallMod's FSO compression check missed <= and ~ in its strip
  chain, silently parsing to 0.0.0
- Mod.FilterDependencies miscategorized non-(>=, ~) deps as exact
  matches; they now pass through dedup unchanged
@Shivansps Shivansps merged commit 29cc789 into KnossosNET:main May 10, 2026
@Shivansps
Copy link
Copy Markdown
Member

Just to add a note to this, the de-dup logic is very complex and has a design flaw, thats why < and <= were never added at the start, i dont think anyone is going to add duplicated depedencies on Knet so this is why im merging it.

But keep in mind the de dup logic and the entire mod dependency system needs a total re-design and rework in the future.

@Goober5000 Goober5000 deleted the feature/more_operators branch May 10, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants