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 add <archive url> does not do anything #4977

Open
kit-ty-kate opened this issue Dec 24, 2021 · 2 comments
Open

opam pin add <archive url> does not do anything #4977

kit-ty-kate opened this issue Dec 24, 2021 · 2 comments

Comments

@kit-ty-kate
Copy link
Member

Using opam master:

$ opam pin add https://gitlab.inria.fr/fpottier/menhir/-/archive/20211223/archive.tar.gz

No package build needed.
Nothing to do.

does not do anything. Whereas:

$ opam pin add menhir https://gitlab.inria.fr/fpottier/menhir/-/archive/20211223/archive.tar.gz

The following actions will be performed:
  ↻ recompile menhir 20211128*
Do you want to continue? [Y/n] n

does something.

@dra27
Copy link
Member

dra27 commented Jan 7, 2022

The error message is definitely a bug (or at least it's not terribly helpful!) Ideally what's wanted is a feature that adding an archive should behave the same way as adding a git URL - scan the archive for opam files and pin them all.

@kit-ty-kate
Copy link
Member Author

kit-ty-kate commented Jan 7, 2022

@rjbou reproducable with:

FROM ocaml/opam:debian-11-ocaml-4.12@sha256:40813dc1391636b4a428afbf0e678d2c81b80d9eade8a5214d8ee271fae155f3
RUN sudo ln -f /usr/bin/opam-dev /usr/bin/opam
RUN opam pin add https://gitlab.inria.fr/fpottier/menhir/-/archive/20211230/archive.tar.gz

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

2 participants