Skip to content

TODO: Make patching easier #140

@LexManos

Description

@LexManos

Posting this as a reminder to myself, and if anyone else wants to do it.
It would be really nice if we could make creation of patch files easier.
There are two approaches that would work:
Create a extra sourceset that all 3 sides {client/server/joined} share.
That sourceset would contain all files that are identical for all 3 sides. In 1.16.5, that's ~2000 of the ~3300 java files.
Which isn't a insignificant amount.

Option 2 is reversing the merge in the source files before generating the patches.
Theoretically, If we strip out everything @DistOnly and the imports for the markers we should have a source file identical to the stripped side. This is a complex process that would need a lot of testing.
However this is the best option for future dev, as we'd only have to fix the patches in one project.

Option 3 is we no longer ever need patches, but that requires FF to be a perfect decompiler. Which we're working on. But until this it'd be nice to get a better process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions