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 removes everything, part IV #451

Closed avsm closed 11 years ago

avsm commented 11 years ago

With latest OPAM, I now get this:

opam install core_extended
The following actions will be performed:
 - remove easy-format.1.0.1
 - remove re.1.2.0
 - remove ssl.0.4.6
 - remove react.0.9.4
 - remove camomile.0.8.3
 - remove cppo.0.9.3
 - remove biniou.1.0.5
 - remove uri.1.3.6
 - remove lwt.2.4.3
 - remove zed.1.2
 - remove yojson.1.1.3
 - remove cohttp.0.9.5
 - remove cmdliner.0.9.2
 - remove lambda-term.1.2
 - remove menhir.20120123
 - install typerex.1.99.3-beta [required by ocp-indent]
 - upgrade type_conv.108.08.00 to 109.08.00 [required by async, core_extended]
 - install pcre-ocaml.6.2.5 [required by core_extended]
 - install herelib.109.08.00 [required by async]
 - install ocp-build.1.99.3-beta [required by ocp-indent]
 - upgrade bin_prot.108.08.00 to 109.08.00 [required by async, core_extended]
 - upgrade comparelib.108.08.00 to 109.08.00 [required by async, core_extended]
 - upgrade fieldslib.108.08.00 to 109.08.00 [required by async, core_extended]
 - recompile ocaml-data-notation.0.0.10 [use type_conv]
 - upgrade pa_ounit.108.08.00 to 109.08.00 [required by async, core_extended]
 - upgrade pipebang.108.08.00 to 109.08.00 [required by async, core_extended]
 - upgrade sexplib.108.08.00 to 109.08.00 [required by async, core_extended]
 - upgrade variantslib.108.08.00 to 109.08.00 [required by async, core_extended]
 - upgrade ocp-indent.0.6.1 to 0.9.0
 - recompile oasis.0.3.0 [use type_conv]
 - upgrade core.108.08.00 to 109.08.00 [required by async, core_extended]
 - upgrade async_core.108.08.00 to 109.08.00 [required by async]
 - install core_extended.109.08.00
 - upgrade async_unix.108.08.00 to 109.08.00 [required by async]
 - upgrade async_extra.108.08.00 to 109.08.00 [required by async]
 - upgrade async.108.08.00 to 109.08.00

Pleeeeease don't remove all those other packages, I just want core_extended ! :)

avsm commented 11 years ago

(workaround was to just specify opam install core_extended github which forced it to not remove the other ones)

samoht commented 11 years ago

Hum b16b5a3b53b68b6491676552bfac2cddc7d5ed6c should have fixed this, normally. I'll look into this again ...

avsm commented 11 years ago

Argh, I have a sudden doubt that my Mac's OPAM isn't up to date then. I also just submitted a brew update.

I second Daniel's suggestion of baking the git id into --version so that I can just record that to be sure...

On 10 Feb 2013, at 22:34, Thomas Gazagnaire notifications@github.com wrote:

Hum b16b5a3 should have fixed this, normally. I'll look into this again ...

— Reply to this email directly or view it on GitHub..

samoht commented 11 years ago

I plan to release 0.9.3 at the beginning of next week btw

samoht commented 11 years ago

So closing the issue as it seems to be closed in 0.9.3 (note that the bug is in opam upgrade which remove install roots, so upgrading your OPAM to latest version will not be enough: you'll need to manually edit $(opam config var prefix)/installed.roots to add the packages that you want to keep)