Repository navigation
Remove --ignore-lock-dir as it has been obsoleted by --pkg=disabled - #13498
Conversation
|
While I agree that originally the purpose of |
|
What is the usecase of such a configuration and why can't it be achieved using other means? I think keeping the flag around makes the situation worse because you have to explain people how it all fits together. Whereas it's actually pretty easy:
Autolocking should not be an operation users need to be aware of, the same as users don't need to know that dune calls Adding more |
Signed-off-by: Marek Kubica <[email protected]>
ae861bf to
99caa2e
Compare
ElectreAAS
left a comment
There was a problem hiding this comment.
You're right, this is better like this
The purpose of
--ignore-lock-dirwas to disable package management in case a package was installed via OPAM as the presence of a lock dir was the only thing required to trigger package management. Thus it was an option that was implied in-p. But with #13458 merged,-preasonably switched to--pkg=disabled.This leaves
--ignore-lock-diras a more or less worse version of--pkg=disabled, with unclear semantics if these two options are combined. This PR removes the option altogether.As to why it was called
--ignore-lock-dirand not--disable-package-management: For the longest time an explicitly created lock dir was the only way to use package management, thus these two terms are equivalent. Notably, ``-ignore-lock-dir` should never imply autolocking, because that directly contradicts the "disable in the OPAM context" usecase.Closes #13468
Closes #13469
Closes #13470
Closes #13472