-
Notifications
You must be signed in to change notification settings - Fork 217
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
fix: make JarNester deterministic #1197
fix: make JarNester deterministic #1197
Conversation
Sorts the list of jars to nest before adding them to fabric.mod.json to ensure the ordering is deterministic.
also, the sort order can be different on windows vs unix, as-per the javadocs for
it may be desireable to |
I think just using the filename would be okay as using the absolute path makes it dependent on the build environment, and only the filename makes it into the jar. I don't think it's a good idea to lower-case them first, since then two files with different cases will get sorted the same, and the ordering between the two becomes platform dependent again |
if you don't want to lowercase them, then make sure to sort using the |
yeah, i meant to push the change that went along with that but forgor, will push when i get home |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorts the list of jars to nest before adding them to fabric.mod.json to ensure the ordering is deterministic.