Skip to content

Commit

Permalink
[opam] workaround opam ignoring the lock file with --locked
Browse files Browse the repository at this point in the history
Summary:
This seems like a bug in opam, probably started after we moved the opam
files to opam/ in D27326495 (673c944). I reported the strange behaviour in
ocaml/opam#4313 (comment).

Reviewed By: rgrig

Differential Revision: D28837624

fbshipit-source-id: f91a58dbc
  • Loading branch information
jvillard authored and facebook-github-bot committed Jun 3, 2021
1 parent 818a586 commit 951cc1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-infer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ setup_opam () {
install_opam_deps () {
local locked=
if [ "$USE_OPAM_LOCK" == yes ]; then
locked=--locked
locked=.locked
fi
opam install --deps-only "$INFER_ROOT"/opam/infer.opam $locked &&
opam install --deps-only "$INFER_ROOT"/opam/infer.opam$locked &&
if [ -n "$SANDCASTLE" ]; then
opam pin list | grep yojson || opam pin add yojson "${DEPENDENCIES_DIR}/yojson-1.7.0fix"
fi
Expand Down

0 comments on commit 951cc1f

Please # to comment.