-
Notifications
You must be signed in to change notification settings - Fork 371
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 --locked
silently ignores the --locked option
#4313
Comments
Opam install uses the lock file when the option is given. |
Any news on this one ? |
There seems to indeed be a bug here where the auto update done on
|
Not sure if it's the same issue (should I open a new one?) but I have another case where
This ignores the lock file in "/path/to/opam/foo.opam.locked". A workaround is to use |
Summary: This seems like a bug in opam, probably started after we moved the opam files to opam/ in D27326495 (673c944). I reported the strange behaviour in ocaml/opam#4313 (comment). Reviewed By: rgrig Differential Revision: D28837624 fbshipit-source-id: f91a58dbc
@jvillard As you give opam an opam file, it takes that opam file, and don't look for the locked one. With |
The update/upgrade of locked pins is fixed by #5080, and initial issue should be fixed by #5079, see test dif |
The behavior of
install --locked
is really confusing, especially because there's no indication that anything is wrong.The thing I would expect to work:
In this case, the
--locked
argument does absolutely nothing and the deps are installed only using mypackage.opam.After reading
opam install --help
, I realized that--locked
only works for withopam pin
:There are two things I'd propose changing:
opam install --locked
use the lock fileopam install --locked
return an error message instead of silently ignoring the argumentThe text was updated successfully, but these errors were encountered: