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

Cannot crate local switch: Missing dependency http >= dev #1093

Open
serpent7776 opened this issue Oct 18, 2024 · 0 comments
Open

Cannot crate local switch: Missing dependency http >= dev #1093

serpent7776 opened this issue Oct 18, 2024 · 0 comments

Comments

@serpent7776
Copy link

I did a fresh pull and tried to build cohttp from the sources, but when I'm creating a local switch it fails:

$ opam switch create ./ 5.0.0
http is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-top is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-server-lwt-unix is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-mirage is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-lwt is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-lwt-unix is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-lwt-jsoo is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-eio is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-curl is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-curl-lwt is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
cohttp-curl-async is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)
Package cohttp-bench does not exist, create as a NEW package? [y/n] y
cohttp-bench is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version dev)
cohttp-async is now pinned to git+file:///mnt/data/data/git/ocaml-cohttp#master (version 6.0.0~beta2)

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["ocaml-base-compiler" {= "5.0.0"} | "ocaml-system" {= "5.0.0"}]
[ERROR] Could not determine which packages to install for this switch:
  * Missing dependency:
    - http >= dev
    no matching version

When I tried with named switch opam switch create cohttp 5.0.0 it went fine, but there's the same error when trying to opam install ./

[ERROR] Package conflict!
  * Missing dependency:
    - http >= dev
    no matching version

No solution found, exiting

My system is Manjaro linux, opam installed from system packages, version 2.2.1-1, system ocaml is version 5.2.0.

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

No branches or pull requests

1 participant