From 882a69fd74a22956b4a0a3b1108dab26ff687fe9 Mon Sep 17 00:00:00 2001 From: Andrey Popp <8mayday@gmail.com> Date: Wed, 28 Aug 2024 15:57:00 +0400 Subject: [PATCH] opam: add pin-depends --- .github/workflows/main.yml | 2 -- ppx_deriving_router.opam | 4 ++++ ppx_deriving_router.opam.template | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 ppx_deriving_router.opam.template diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e14338..d037f44 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,8 +42,6 @@ jobs: # doesn't handle it - run: sudo apt-get install -qq -yy libev-dev libssl-dev pkg-config # clean build - - run: opam pin add melange-json.dev https://github.com/melange-community/melange-json.git --yes - - run: opam pin add melange-json-native.dev https://github.com/melange-community/melange-json.git --yes - run: opam install . --deps-only - run: opam exec -- dune build -p ppx_deriving_router # build with dream (should make ppx_deriving_router.dream available) diff --git a/ppx_deriving_router.opam b/ppx_deriving_router.opam index 3765b26..9a7d1f8 100644 --- a/ppx_deriving_router.opam +++ b/ppx_deriving_router.opam @@ -36,3 +36,7 @@ build: [ ] ] dev-repo: "git+https://github.com/andreypopp/ppx_deriving_router.git" +pin-depends: [ + ["melange-json.dev" "git+https://github.com/melange-community/melange-json"] + ["melange-json-native.dev" "git+https://github.com/melange-community/melange-json"] +] diff --git a/ppx_deriving_router.opam.template b/ppx_deriving_router.opam.template new file mode 100644 index 0000000..ca23292 --- /dev/null +++ b/ppx_deriving_router.opam.template @@ -0,0 +1,4 @@ +pin-depends: [ + ["melange-json.dev" "git+https://github.com/melange-community/melange-json"] + ["melange-json-native.dev" "git+https://github.com/melange-community/melange-json"] +]