Skip to content

Commit 8c7358c

Browse files
committed
Bump Unix opam root location change to 2.3
Waiting on ocaml/opam#3766 Part of diskuv/dkml-installer-ocaml#83
1 parent 6c5637a commit 8c7358c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unix/_common_tool.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,16 @@ set_opamrootdir() {
267267
if [ -z "$OPAMROOTDIR_BUILDHOST" ]; then
268268
# Opam is not initialized. We probably got:
269269
# [ERROR] Opam has not been initialised, please run `opam init'
270-
# So conform to https://github.com/ocaml/opam/pull/4815#issuecomment-910137754
270+
# So conform to https://github.com/ocaml/opam/issues/3766 with an
271+
# opam root change intended for opam 2.3.
272+
# CHANGE NOTICE: Also change dkml-runtime-apps's [opam_context.ml]
271273
set_opamrootdir_VER=$($OPAMEXE --version)
272274
case "$set_opamrootdir_VER" in
273275
1*)
274276
printf "FATAL: You will need to upgrade %s to Opam 2.0+\n" "$OPAMEXE"
275277
exit 107
276278
;;
277-
2.0.*|2.1.*)
279+
2.0.*|2.1.*|2.2.*)
278280
OPAMROOTDIR_BUILDHOST="$HOME/.opam"
279281
;;
280282
*)

0 commit comments

Comments
 (0)