Commit 1b4f7cb5 authored by Ralf Jung's avatar Ralf Jung
Browse files

print more information on failure

parent 64bce399
...@@ -101,11 +101,16 @@ echo ...@@ -101,11 +101,16 @@ echo
# Pin build-dep and install everything. # Pin build-dep and install everything.
warn "[prepare-opam] Pinning and installing build-dep and upgrading everything" warn "[prepare-opam] Pinning and installing build-dep and upgrading everything"
opam pin add -y -n build-dep/ # we have to do this first, or `opam upgrade` cannot pick it up, see opam issue #3613. if ! opam pin add -y -n build-dep/; then # we have to do this first, or `opam upgrade` cannot pick it up, see opam issue #3613.
panic "'pin add build-dep/' failed'"
fi
# We would really like to do these two in one transaction, but that does not work -- see opam issue #3737. # We would really like to do these two in one transaction, but that does not work -- see opam issue #3737.
# Also, we have to list the packages we pinned explicitly here, or else opam fails to upgrade them if they # Also, we have to list the packages we pinned explicitly here, or else opam fails to upgrade them if they
# are pinned to a git branch (it ignores changes in the git branch) -- see opam issue #3727. # are pinned to a git branch (it ignores changes in the git branch) -- see opam issue #3727.
opam upgrade -y build-dep/ $PINNED_PACKAGES if ! opam upgrade -y build-dep/ $PINNED_PACKAGES; then
echo && opam pin && echo && opam list && echo
panic "'opam upgrade build-dep/ $PINNED_PACKAGES' failed"
fi
opam upgrade -y opam upgrade -y
echo echo
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment