Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

opam install --check does not check whether dependencies are installed recursively #6097

Closed
kit-ty-kate opened this issue Jul 15, 2024 · 0 comments · Fixed by #6122
Closed

Comments

@kit-ty-kate
Copy link
Member

If a dependency is added or changed in the dependency tree of the package being tested with --check, then the change won't be detected.

Example:

$ cat ./a.opam
opam-version: "2.0"
depends: ["b"]
$ cat ./b.opam
opam-version: "2.0"
$ cat ./c.opam
opam-version: "2.0"
$ opam pin add -yn .
$ opam install ./b.opam
$ opam install --check ./a.opam
All dependencies installed
$ echo 'depends: ["c"]' >> ./b.opam
$ opam pin add -yn .
$ opam install --check ./a.opam
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant