Skip to content

Commit

Permalink
travis: 4.07.1 is ambiguous on MacOS b/c ocaml-system.4.07.1 is avail…
Browse files Browse the repository at this point in the history
…able, which makes opam abort.

[ERROR] Compiler selection '4.07.1' is ambiguous. matching packages: {
        ocaml-base-compiler.4.07.1, ocaml-system.4.07.1 }

On Linux we don't have any OCaml installed, so safe choice is to always download and compile OCaml by specifying ocaml-base-compiler.4.07.1.
  • Loading branch information
vogler committed Jun 25, 2019
1 parent 4b03883 commit ecbbb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ocb() {
opam_setup() {
set -x
opam init -y -a --bare $SANDBOXING # sandboxing is disabled in travis and docker
opam switch -y create ./ --deps-only 4.07.1
opam switch -y create ./ --deps-only ocaml-base-compiler.4.07.1
# opam install camlp4 mongo # camlp4 needed for mongo
}

Expand Down

1 comment on commit ecbbb71

@vogler
Copy link
Collaborator Author

@vogler vogler commented on ecbbb71 Jul 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed in opam 2.1.0. See ocaml/opam#3874

Please sign in to comment.