-
Notifications
You must be signed in to change notification settings - Fork 373
Replace every use of GNU Patch by the OCaml patch library #5892
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
Replace every use of GNU Patch by the OCaml patch library #5892
Conversation
Could be coupled with ocaml-patch's implementation of diff via hannesm/patch#12 |
47f9c1e
to
d83fd0b
Compare
2841797
to
6a05509
Compare
10a485e
to
6da29f1
Compare
6d73281
to
d133309
Compare
93d5eb8
to
b32bcea
Compare
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.
Great & huge work!! Some comments on small thing, but in the idea and how it is done 💯
I'm wondering if we should have some reftest for it ? Or patch
library test are enough ?
On testing, can you confirm that all opam repo patches are handled?
I think also that the single commit should be split, per "change" : * add patch lib
- change patch function to use lib & remove the tool dependency
- change diff function to use lib & remove the tool dependency
83dfa03
to
82d3207
Compare
History cleaned |
82d3207
to
7bdf02a
Compare
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!!!
7bdf02a
to
c2b5fcf
Compare
c2b5fcf
to
920f7c5
Compare
920f7c5
to
9ad9ef5
Compare
@kit-ty-kate thanks. Great work :-) |
Fixes #6019
Fixes #3782 by removing any handling of chmod entirely (git extensions). Every patched files keep their permissions and every new file has the default file permission (644).
Fixes ocaml/setup-ocaml#933
Fixes #6052
see #5891
A large amount of work was necessary in the
patch
library to make this work. See hannesm/patch#9, hannesm/patch#7 and especially hannesm/patch#22Moving the logic of
OpamSystem.translate_patch
intopatch
can be done later. Possibly during the 2.4 alpha phase.The 2.4 alpha phase will also serve to test this new version of patch (3.0.0), once it has been sufficiently tested the stable release of
patch.3.0.0
will be published.