Skip to content

Draft: Merge --ignore-lock-dir into --pkg=autolocking - #13472

Closed
ElectreAAS wants to merge 2 commits into
ocaml:mainfrom
ElectreAAS:push-klrpnpkkuykq
Closed

ElectreAAS wants to merge 2 commits into
ocaml:mainfrom
ElectreAAS:push-klrpnpkkuykq

Conversation

@ElectreAAS

@ElectreAAS ElectreAAS commented Jan 27, 2026 •

Copy link
Copy Markdown
Collaborator

This PR is built on top of #13458, and addresses some concerns that were raised in the comments
Fixes #13468

The flag --ignore-lock-dir has dubious interaction with the --pkg option added in #13458, and this PR removes it and moves its behaviour into --pkg=autolocking:

Usage In #13458 In this PR
default behaviour lock dir detection lock dir detection
disabled --pkg disabled --pkg disabled
enabled with lock dir --pkg enabled --pkg enabled
enabled without lockdir (autolocking) --pkg enabled --ignore-lock-dir --pkg autolocking

Set as draft because I assume the design will change a lot depending on comments

@ElectreAAS

Copy link
Copy Markdown
Collaborator Author

Linking Thomas's RFC here so we don't forget it

@Leonidas-from-XIV

Copy link
Copy Markdown
Member

As said elsewhere, --ignore-lock-dir was created to make sure that OPAM installs (which use p which implied --ignore-lock-dir do not use Dune package management. As before package management was enabled just by the presence of a lock dir in the source.

Thus we added this option so that if tarballs published on OPAM would include lockdirs, Dune would ignore them. To preserve the same intent, the proper translation would be --ignore-lock-dir -> --pkg=disabled. I would thus just suggest removing the option as it was obsoleted by #13458.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(pkg): unify --ignore-lock-dir with --pkg flag

2 participants