Skip to content

Commit

Permalink
fix(melange): teach Dune_file.stanza_package about melange.emit
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
  • Loading branch information
anmonteiro committed Jun 1, 2023
1 parent 53640ad commit f96856f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/dune_rules/dune_file.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2360,6 +2360,7 @@ let stanza_package = function
| Documentation { package; _ }
| Tests { package = Some package; _ } -> Some package
| Coq_stanza.Theory.T { package = Some package; _ } -> Some package
| Melange_stanzas.Emit.T mel -> mel.package
| _ -> None

type t =
Expand Down
5 changes: 0 additions & 5 deletions test/blackbox-tests/test-cases/melange/melange-emit-package.t
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,3 @@
when building the other library

$ dune build -p my-ppx
File "test/dune", line 4, characters 12-19:
4 | (libraries mel-foo))
^^^^^^^
Error: Library "mel-foo" not found.
[1]

0 comments on commit f96856f

Please sign in to comment.