From 44d986b817553c16a993865ea2cd166d75a1f41b Mon Sep 17 00:00:00 2001 From: Ivan Gotovchits Date: Wed, 3 Aug 2022 08:12:55 -0400 Subject: [PATCH] uses explicit install field to install packages (#18) With `dune -p piqi,piqirun @install` dune generates two proper install packages `piqi.install` and `piqirun.install`. However, opam will only use the `piqi.install` file and ignore the latter, so the `piqirun` library is not installed. --- opam | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/opam b/opam index 76403a4..0bd8cd9 100644 --- a/opam +++ b/opam @@ -6,7 +6,7 @@ homepage: "https://github.com/alavrik/piqi-ocaml" bug-reports: "https://github.com/alavrik/piqi-ocaml/issues" depends: [ "ocaml" {>= "4.02.0"} - "ocamlfind" {build} + "dune" {>= "2.0.0"} "piqilib" "stdlib-shims" "num" {with-test} @@ -24,6 +24,10 @@ build: [ jobs "@install" "@runtest" {with-test} - "@doc" {with-doc} + "@doc" {with-doc} ] ] + +install: [ + ["dune" "install"] +]