We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pin-depends
depends
Hi,
I realized that if I have the following owi.opam file:
owi.opam
depends: [] pin-depends: [ [ "encoding.dev" "git+https://github.com/formalsec/encoding"] ]
Then, running opam install -y ./*.opam --deps-only --with-test would not install encoding.
opam install -y ./*.opam --deps-only --with-test
encoding
But if I add it to the depends fields:
depends: [ "encoding" ] pin-depends: [ [ "encoding.dev" "git+https://github.com/formalsec/encoding"] ]
Then it would be properly installed with the same command.
I'm wondering if there is a reason why a package being present in pin-depends does not imply it is part of depends ?
Thanks!
The text was updated successfully, but these errors were encountered:
one reason i can think of out of my head at the moment is: it could be a depopt (optional dependency) instead
depopt
Sorry, something went wrong.
TODO for us: we could add a lint check to warn users when a pin-depends is not listed in either depends or depopts
depopts
Oh indeed, that's a nice idea. In our case, it would have been enough to detect our mistake earlier. :)
Successfully merging a pull request may close this issue.
Hi,
I realized that if I have the following
owi.opam
file:Then, running
opam install -y ./*.opam --deps-only --with-test
would not installencoding
.But if I add it to the
depends
fields:Then it would be properly installed with the same command.
I'm wondering if there is a reason why a package being present in
pin-depends
does not imply it is part ofdepends
?Thanks!
The text was updated successfully, but these errors were encountered: