-
Notifications
You must be signed in to change notification settings - Fork 372
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 lock ignores pin-depends #5187
Comments
(note that it works perfectly fine if i add |
Lock file does not keep local pinned dependencies (cf. #4897), it should work with external one. |
Local pins and pin-depends are different things imo, the second becomes the former but apart from that they’re quite different. To me pin-depends should be part of the lock file if they are in the original opam file, but it makes sense to not include locally pinned packages by default. |
For opam lock, there is no difference between local pin or pin-depends. It looks for installed dependencies, if it is pinned, adds it in the lock file (only if not local). |
Let have two projects
proj1
andproj2
in/tmp
:In
/tmp/proj2/proj2.opam
:In
/tmp/proj1/proj1.opam
:Now let’s install proj1:
Now let’s create a lock file for
proj1
:This will generate the following
proj1.opam.locked
:Here we can see that the
pin-depends
section is completely missing, thus the following will fail with:The text was updated successfully, but these errors were encountered: