Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] dune build @check fails mysteriously with overlapping executables #11518

Open
nojb opened this issue Mar 7, 2025 · 0 comments
Open

[BUG] dune build @check fails mysteriously with overlapping executables #11518

nojb opened this issue Mar 7, 2025 · 0 comments
Labels

Comments

@nojb
Copy link
Collaborator

nojb commented Mar 7, 2025

Repro:

$ mkdir test && cd test
$ cat >dune-project <<EOF
> (lang dune 3.0)
> EOF
$ cat >dune <<EOF
> (executable (name main1))
> (executable (name main2))
> EOF
$ touch main1.ml main2.ml
$ dune build @check
File "main2.ml", line 1:
Error: Could not find the .cmi file for interface main2.mli.
File "main1.ml", line 1:
Error: Could not find the .cmi file for interface main1.mli.
$ dune build @all
$
  • Do not understand why dune build @check fails but dune build @all passes; and
  • Shouldn't this Dune file be rejected by Dune since the two stanzas have overlapping module lists?
@nojb nojb added the bug label Mar 7, 2025
@nojb nojb changed the title dune build @check fails mysteriously with overlapping executables [BUG] dune build @check fails mysteriously with overlapping executables Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant