Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opam install --deps-only <path> should not upgrade packages from that path #6193

Open
kit-ty-kate opened this issue Sep 6, 2024 · 0 comments

Comments

@kit-ty-kate
Copy link
Member

Weird behaviours can happen if a package being requested to install only its dependencies is already installed itself:

$ cd opam
$ opam install --deps-only .
[...]
=== recompile 67 packages
[...]
  ↻ ocaml-base-compiler  4.08.1                         [upstream or system changes]
[...]
=== upgrade 6 packages
  ↗ opam-client          2.2.0~beta1 to 2.3.0~alpha~dev [upstream or system changes]
  ↗ opam-core            2.2.0~beta1 to 2.3.0~alpha~dev [upstream or system changes]
  ↗ opam-format          2.2.0~beta1 to 2.3.0~alpha~dev [upstream or system changes]
  ↗ opam-repository      2.2.0~beta1 to 2.3.0~alpha~dev [upstream or system changes]
  ↗ opam-solver          2.2.0~beta1 to 2.3.0~alpha~dev [uses opam-0install-cudf]
  ↗ opam-state           2.2.0~beta1 to 2.3.0~alpha~dev [upstream or system changes]

The resulting switch contains packages that are neither from a repository nor from an kind of pin.
opam pin and opam list after that command show:

$ opam pin
[blank]
$ opam list 'opam-*'
[...]
opam-core            2.3.0~alpha~dev Core library for opam 2.2
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant