[ocaml-platform] [opam-devel] A small script for compiler hackers: create short-lived opam switches out of any git branch
Anil Madhavapeddy
anil at recoil.org
Mon Mar 18 16:24:46 GMT 2013
On 18 Mar 2013, at 11:21, Thomas Gazagnaire <thomas at ocamlpro.com> wrote:
>> Compiler patches don't exist at the moment within OPAM, but I like Gabriel's
>> approach of taking an existing tree (that's, e.g., a git repo) and moving
>> it into the OPAM space. You can just use the underlying VCS to track your
>> patches and branches without requiring more complexity in OPAM.
>
> Not true :-)
>
> You can use
>
> patches: [ ... ]
>
> in your compiler files as well. See: https://github.com/OCamlPro/opam/blob/master/src/core/opamFile.ml#L1167
>
> The patch can be local or available via HTTP.
Aha... I didn't realise these could be local too...very handy!
I still find it easier to work with a git repo directly, rather than having
to generate patch files (unless the branch is for 'publishing' to other people).
-anil
More information about the Platform
mailing list