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 tree causes error when used with --with-doc #5755

Closed
smorimoto opened this issue Dec 7, 2023 · 4 comments · Fixed by #5919
Closed

opam tree causes error when used with --with-doc #5755

smorimoto opened this issue Dec 7, 2023 · 4 comments · Fixed by #5919
Assignees

Comments

@smorimoto
Copy link
Member

Actual error:

❯ opam tree ./hello.opam --json=tmp.json --test --doc
Constructing initial basis...
Number of 0-1 knapsack inequalities = 5983
Constructing conflict graph...
Conflict graph has 1395 + 699 = 2094 vertices
[ERROR] Could not simulate installing the specified package(s) to this switch:
The actions to process have cyclic dependencies:
  - install odoc (= 25) -> install camlp-streams (= 2) -> install odoc-parser (= 6) -> install odoc (= 25)

This is likely related to: #4541

@ElectreAAS
Copy link
Collaborator

Looking into it!

@ElectreAAS
Copy link
Collaborator

Could you paste the contents of your hello.opam file (or a redacted subset) please? I have a hard time reproducing this

@kit-ty-kate
Copy link
Member

@ElectreAAS using

opam-version: "2.0"
depends: [
  "odoc" {with-doc}
]

in a switch where you have odoc installed i can reproduce it locally using the command above

@kit-ty-kate
Copy link
Member

I'm also seeing a different unexpected output when given --no-switch on top of that:

$ opam tree ./hello.opam --test --doc --no-switch
The following actions are simulated:
=== install 1 package
  ∗ hello dev

hello.dev

we expect odoc to be present in the tree but it's not currently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants