ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.24k stars 354 forks source link

opam >= 0.9.2 exits doing nothing #438

Closed ghost closed 11 years ago

ghost commented 11 years ago

With opam 0.9.2 or the latest git version opam seems to exit without failing when trying to install some packages. For example after a fresh opam init, opam install oasis successfully install ocamlfind, ocamlify, type_conv and ocaml-data-notation but then exit with code 0. Calling opam install oasis again produces:

The following actions will be performed:
 - install oasis.0.3.0
 - install ounit.1.1.1
 - install fileutils.0.4.4
 - install ocamlmod.0.0.3
4 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n] 

But exit immediately with code 0 after pressing enter. Tested on Linux and OSX with ocaml 4.00.1 and 4.01.0dev+short-paths.

avsm commented 11 years ago

I observed this behaviour with @samoht while debugging the new solver, but couldn't reproduce it. On the bright side, at least it didn't erase all my files while exiting.

samoht commented 11 years ago

Two issues here: