You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed what seems like a strange inconsistency between opam pin and opam install:
With opam install, I can pass as argument the name of an opam file called PROJECT.opam, and it will pin and install that file. But I cannot just pin that file via opam pin folder/PROJECT.opam, that leads to strange errors:
[coq-stdpp-builddep] downloaded from file:///home/r/Dokumente/Unisachen/iris/stdpp/builddep/coq-stdpp-builddep.opam
[ERROR] Could not retrieve Unknown archive type: /tmp/opam-1533009-dd682e/coq-stdpp-builddep.opam
What I can do is opam pin folder/, and that will pin all the opam files in that folder -- which happens to suffice for my current use-case, but what if I want to pin just some of them? There does not seem to be a way.
opam install include some behaviour of opam pin, and opam pin calls opam install, to make opam use easier, but they are not completely interchangeable.
If you want to pin one of them, you can use opam pin PROJECT folder/, opam will find the corresponding PROJECT opam file in folder/. To pin more than one, it is not possible in 2.0, but in 2.1 the normalised form introduced by opam pin scan#4285 permits it. @AltGr is there a reason for opam pin to not take an opam filename as argument (except not implemented :)) ?
Yeah, the discrepency between the two, with huge overlapping parts, is quite annoying... but it's not obvious how to rehaul this part of thce CLI.
I don't think there is a reason for not allowing opam pin <opamfile>.
Among the other discrepancies that I find annoying is the fact that you can do opam pin REMOTE_URL but not opam install
I noticed what seems like a strange inconsistency between
opam pin
andopam install
:With
opam install
, I can pass as argument the name of an opam file calledPROJECT.opam
, and it will pin and install that file. But I cannot just pin that file viaopam pin folder/PROJECT.opam
, that leads to strange errors:What I can do is
opam pin folder/
, and that will pin all the opam files in that folder -- which happens to suffice for my current use-case, but what if I want to pin just some of them? There does not seem to be a way.The text was updated successfully, but these errors were encountered: