-
Notifications
You must be signed in to change notification settings - Fork 41
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 Field Migration #168
Fix Field Migration #168
Conversation
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.
I trust you that it works, I don't understand the field migrator to begin with :ioa:
Table<String, String, String> fieldDescriptorMap = HashBasedTable.create(); | ||
|
||
for (Map.Entry<FieldMember, String> entry : migratedFields) { | ||
fieldDescriptorMap.put(entry.getKey().owner, entry.getKey().field, entry.getValue()); | ||
} | ||
|
||
MemoryMappingTree mappings = new MemoryMappingTree(); | ||
injectMigration(project, fieldDescriptorMap, rawTinyMappings, tinyMappings); | ||
injectMigration(project, fieldDescriptorMap, rawTinyMappingsWithSrg, tinyMappingsWithSrg); |
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.
Thanks for this, it makes applying the same thing to the Mojang-merged mappings much easier too
Test Results 95 files ± 0 95 suites ±0 3h 48m 8s ⏱️ + 7m 57s For more details on these failures, see this check. Results for commit 3448898. ± Comparison against base commit 683a866. This pull request removes 24 and adds 13 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
#162 is caused by SrgMerger dropping the migrated fields. The easiest and most reliable way to fix this is to apply the migration to both base and srg tiny, instead of only applying to the base and let SrgMerger merge the mappings.
The fix seems pretty reliable.