Skip to content

Should opam install --deps-only impose target package constraints? #3846

Description

@maroneze

I am trying the 4.08+rc1, and I'd like to do a opam install --deps-only frama-c to quickly obtain all dependencies. However, the frama-c package is marked as incompatible with 4.08 (it was released before 4.08 was out), so opam fails with:

The following dependencies couldn't be met:
  - frama-c → ocaml < 4.08.0
      base of this switch (use `--unlock-base' to force)

I agree this makes sense most of the time, but since the frama-c package will not be installed anyway, it could make sense to emit a warning saying "Unmet dependencies for target package, do you want to continue?" and allow the user to try it anyway.

By the way, --unlock-base does not help, it simply downgrades OCaml.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions