PaperMC / paperweight

Gradle build system plugin for Paper and Paper forks
230 stars 49 forks source link

Rework dev bundle patch generation to not use GNU diff #65

Open jpenilla opened 3 years ago

jpenilla commented 3 years ago

This is generally not very high priority as most of the time dev bundles will be generated by CI and published to maven, but it would be nice to not need GNU diff for dev bundle generation, for easier local testing on macOS (for those who for some reason don't install GNU coreutils) and Windows.

Two possible alternatives are

rgnter commented 2 years ago

GNU DiffUtils does not have --color option. This should be marked as bug, not an "enhancement".

MiniDigger commented 2 years ago

GNU DiffUtils does not have --color option. This should be marked as bug, not an "enhancement".

thats wrong https://www.gnu.org/software/diffutils/manual/diffutils.html#index-color_002c-distinguishing-different-context

rgnter commented 2 years ago

It's not available in prebuilt version 2.8.

NotMyFault commented 2 years ago

In 10 days, 2.8 celebrates 20th anniversary. --color was originally introduced in 3.4, but you should update to the newest release from a few months ago; 3.8. However, I'm currently on 3.7 and it works out of the box as well.

rgnter commented 2 years ago

It's not available standalone, after installing pacman I finally managed to get it.