Skip to content

Conversation

@lukebemish
Copy link

We are attempting to make use of compat-level annotations for mixin configs in neoforge (see neoforged/FancyModLoader#339) but with how we are structuring this, need the currently-running fabric mixin version at runtime to determine the maximum mixin version a mod should be able to request the equivalent compat to. We cannot use Package#getImplementationVersion to get this in all cases, because in a neo context, mixin may be running as a module and packages in modules do not have spec/impl versions attached. An easy solution is to attach the version to the module-info such that it can be retrieved from the module at runtime.

lukebemish added a commit to lukebemish/FancyModLoader that referenced this pull request Aug 25, 2025
Copy link
Member

@Juuxel Juuxel left a comment

Choose a reason for hiding this comment

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

This is a good thing to include in general to have a more complete module-info IMO

@modmuss50 modmuss50 merged commit c958aaa into FabricMC:main Aug 26, 2025
1 check passed
@lukebemish lukebemish deleted the module-version branch August 26, 2025 17:08
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.

4 participants