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 pin fails because of transitional curl package #74

Open
ygrek opened this issue Feb 10, 2024 · 1 comment
Open

opam pin fails because of transitional curl package #74

ygrek opened this issue Feb 10, 2024 · 1 comment

Comments

@ygrek
Copy link
Owner

ygrek commented Feb 10, 2024

pinning to dev-repo doesn't work (will work after curl release?)

$ opam pin ocurl --dev-repo
[ocurl.0.9.2] synchronised (git+https://github.com/ygrek/ocurl.git)
ocurl is now pinned to git+https://github.com/ygrek/ocurl.git (version 0.9.2)

[ERROR] Package conflict!
  * Missing dependency:
    - curl
    unknown package

cloning and pinning doesn't work (due to opam bug?)

$ git clone https://github.com/ygrek/ocurl.git
Cloning into 'ocurl'...
[...]
$ opam pin ocurl
This will pin the following packages: curl, ocurl. Continue? [Y/n] y
Package curl does not exist, create as a NEW package? [Y/n] y
curl is now pinned to git+file:///tmp/ocurl#master (version ~dev)
ocurl is now pinned to git+file:///tmp/ocurl#master (version 0.9.2)

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

the way that works :

$ opam pin ocurl --with-version=~dev
This will pin the following packages: curl, ocurl. Continue? [Y/n] y
Package curl does not exist, create as a NEW package? [Y/n] y
curl is now pinned to git+file:///tmp/ocurl#master (version ~dev)
ocurl is now pinned to git+file:///tmp/ocurl#master (version ~dev)
[...]
@psafont
Copy link

psafont commented Mar 8, 2024

I believe this to be an issue with how opam works. The same issue happens when pinning https://github.com/gildor478/ounit:

opam pin .
This will pin the following packages: ounit-lwt, ounit, ounit2-lwt, ounit2. Continue? [y/n] y
Package ounit-lwt does not exist, create as a NEW package? [y/n] y
ounit-lwt is now pinned to git+file:///home/paus/code/ocaml/ounit#master (version dev)
ounit is now pinned to git+file:///home/paus/code/ocaml/ounit#master (version 2.2.7)
Package ounit2-lwt does not exist, create as a NEW package? [y/n] y
ounit2-lwt is now pinned to git+file:///home/paus/code/ocaml/ounit#master (version dev)
ounit2 is now pinned to git+file:///home/paus/code/ocaml/ounit#master (version 2.2.7)

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

(the output is different because I'm using opem 2.2.0)

The installation of the packages works fine when using the released versions

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

2 participants