mirage / functoria

A DSL to invoke otherworldly functors
ISC License
63 stars 21 forks source link

support pin-depends: extend Functoria.package with the optional label… #163

Closed hannesm closed 5 years ago

hannesm commented 5 years ago

…ed argument

?pin of type string - if set, the generated opam file includes a pin-depends: [ name pin ] line. During merge of dependencies, a pin wins over version constraints (min and max).

This allows us to properly specify development packages as dependencies, such as: package ~pin:"git+https://github.com/roburio/udns.git" "udns".

addresses https://github.com/mirage/mirage/issues/499

hannesm commented 5 years ago

this PR makes my life much easier -- I'm interested in any feedback you may have. if there's no criticism, I'll merge this later today, draft a functoria release, in order to get this within the mirage 3.3.0 release cycle.