Repository navigation
Fix: dune pkg enabled doesn't know about the flag --ignore-lock-dir - #13470
Closed
ElectreAAS wants to merge 2 commits into
Closed
ElectreAAS wants to merge 2 commits into
ElectreAAS wants to merge 2 commits into
Conversation
Signed-off-by: Ambre Austen Suhamy <[email protected]>
1 task
art-w
reviewed
Jan 27, 2026
| $ test -d dune.lock | ||
| $ dune pkg enabled | ||
|
|
||
| However the --ignore-lock-dir option raises a bug in the detection mechanism |
Contributor
There was a problem hiding this comment.
That line made sense in the bug reproduction, but not so much once the bug is fixed ^^ Can you clarify what the expected behavior is?
Collaborator
Author
There was a problem hiding this comment.
Oopsie, thanks :)
Signed-off-by: Ambre Austen Suhamy <[email protected]>
ElectreAAS
force-pushed
the
push-ksowmxoqqotm
branch
from
January 27, 2026 15:34
bc4c0e6 to
da47d85
Compare
ElectreAAS
pushed a commit
to ElectreAAS/dune
that referenced
this pull request
Feb 2, 2026
…d` (ocaml#13498) The purpose of `--ignore-lock-dir` was 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 ocaml#13458 merged, `-p` reasonably switched to `--pkg=disabled`. This leaves `--ignore-lock-dir` as 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-dir` and 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 ocaml#13468 Closes ocaml#13469 Closes ocaml#13470 Closes ocaml#13472 Signed-off-by: Marek Kubica <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #13469
Commit 1 adds the test reproducing the issue, commit 2 fixes it