From a0daa75f317dd4a1325f9ec07fe3c9961f2f5b8c Mon Sep 17 00:00:00 2001 From: "Haochen M. Kotoi-Xie" Date: Thu, 15 Feb 2024 16:10:11 +0900 Subject: [PATCH 1/2] ocaml-general - (5.1 only) pin dune related packages to 3.10.0 --- ocaml-general/install_ocaml_5.1_packages.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ocaml-general/install_ocaml_5.1_packages.sh b/ocaml-general/install_ocaml_5.1_packages.sh index 386ea70..b0ed73b 100755 --- a/ocaml-general/install_ocaml_5.1_packages.sh +++ b/ocaml-general/install_ocaml_5.1_packages.sh @@ -29,9 +29,23 @@ packages=( uri.4.4.0 ) +pins=( + dune 3.10.0 + dune-action-plugin 3.10.0 + dune-build-info 3.10.0 + dune-configurator 3.10.0 + dune-glob 3.10.0 + dune-private-libs 3.10.0 + dune-rpc 3.10.0 + dune-rpc-lwt 3.10.0 + dune-site 3.10.0 +) + opam install --yes "${packages[@]}" \ && opam clean -y --logs --repo-cache --download-cache --switch-cleanup +echo "${pins[@]}" | xargs -n 2 opam pin -n add + echo -n "exec: " printf "%s\n" "${packages[@]}" | cut -d'.' -f1 | xargs echo opam show -f package printf "%s\n" "${packages[@]}" | cut -d'.' -f1 | xargs opam show -f package From 9b212aa6fe16b5e6508ac1ac8e584d038b14a9ac Mon Sep 17 00:00:00 2001 From: "Haochen M. Kotoi-Xie" Date: Fri, 16 Feb 2024 20:36:57 +0900 Subject: [PATCH 2/2] ocaml-general - (5.1 only) pin dune related packages to 3.10.0 (2) --- ocaml-general/install_ocaml_5.1_packages.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocaml-general/install_ocaml_5.1_packages.sh b/ocaml-general/install_ocaml_5.1_packages.sh index b0ed73b..5884b38 100755 --- a/ocaml-general/install_ocaml_5.1_packages.sh +++ b/ocaml-general/install_ocaml_5.1_packages.sh @@ -41,11 +41,11 @@ pins=( dune-site 3.10.0 ) +echo "${pins[@]}" | xargs -n 2 opam pin -n add + opam install --yes "${packages[@]}" \ && opam clean -y --logs --repo-cache --download-cache --switch-cleanup -echo "${pins[@]}" | xargs -n 2 opam pin -n add - echo -n "exec: " printf "%s\n" "${packages[@]}" | cut -d'.' -f1 | xargs echo opam show -f package printf "%s\n" "${packages[@]}" | cut -d'.' -f1 | xargs opam show -f package