Skip to content

Commit

Permalink
Fix: add missing dependency constraint on pyml in the opam file
Browse files Browse the repository at this point in the history
Reported by kit-ty-kate:
3ae8708

With pyml version <20171117, build fails with the following error:
```
File "python/yes_pycocci.ml", line 77, characters 15-46:
 77 |       ~parents:[pycocci_get_class_type parent]
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 Error: This expression has type 'a list
        but an expression was expected of type Py.Object.t =
        Pytypes.pyobject
```

Indeed, the signature of `Py.Class.init` (the function which is being
applied here) changed between 20170807 and 20171117. For reference,
the interface was changed by the commit:
thierry-martinez/pyml@2fedb0b
  • Loading branch information
thierry-martinez committed May 20, 2020
1 parent d93107d commit e27e5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coccinelle.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ depends: [
"ocamlfind"
"pcre"
"stdcompat"
"pyml"
"pyml" { >= "20171117" }
"conf-pkg-config"
"conf-python-3"
"conf-python-3-dev"
Expand Down

0 comments on commit e27e5dc

Please sign in to comment.