Skip to content

Commit

Permalink
Reproduce #3336
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Oct 9, 2020
1 parent f967df6 commit c6c51b4
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/github3336.t/dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 2.4)
3 changes: 3 additions & 0 deletions test/blackbox-tests/test-cases/github3336.t/executable/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(executable
(name exec)
(preprocess (pps ppx)))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let () = ()
4 changes: 4 additions & 0 deletions test/blackbox-tests/test-cases/github3336.t/library/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(library
(name lib)
(library_flags (-linkall))
(libraries dune-build-info))
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/github3336.t/library/lib.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let version () = Option.map Build_info.V1.Version.to_string (Build_info.V1.version ())
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
val version : unit -> string option
5 changes: 5 additions & 0 deletions test/blackbox-tests/test-cases/github3336.t/ppx/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(library
(name ppx)
(kind ppx_rewriter)
(libraries lib)
(ppx.driver (main Ppx.main)))
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/github3336.t/ppx/ppx.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let main () = ()
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/github3336.t/ppx/ppx.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
val main : unit -> unit
6 changes: 6 additions & 0 deletions test/blackbox-tests/test-cases/github3336.t/run.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Issue #3336 describes a bug where it's not possible to use dune_build_info from
ppx binaries.

$ dune exec ./executable/exec.exe 2>&1 | grep -v "^File" | sed -E 's/from .+/from ../'
Error: No implementations provided for the following modules:
Build_info__Build_info_data referenced from ..

0 comments on commit c6c51b4

Please sign in to comment.