Skip to content

opatch fails to apply patch produced by diff, causing 'opam update' to fail #43

Description

@edwintorok

See ocaml/opam#6937

Steps to reproduce:

$ git clone https://github.com/ocaml/opam-repository && cd opam-repository
$ git checkout 4e7f3a62e3e8654e6c3b146b76136959efbcb3f5
$ git clean -xfd
$ opatch -p 1 ../checkseum.patch
Fatal error: Patch "../checkseum.patch" does not apply cleanly

$ git reset --hard HEAD
$ git clean -xfd
$ patch -p 1 <../checkseum.patch
patching file packages/checkseum/checkseum.0.5.2/opam
patching file packages/checkseum/checkseum.0.5.3/opam (copied from packages/checkseum/checkseum.0.5.2/opam)

checkseum.patch

Looks like checkseum.0.5.2 is first patched, then copied, then attempted to get patched again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions