-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Reproduce github #7020 | ||
|
||
$ dir=_to-install | ||
$ mkdir $dir | ||
$ cat >$dir/dune-project <<EOF | ||
> (lang dune 3.7) | ||
> (using melange 0.1) | ||
> (package | ||
> (name dummyfoo)) | ||
> EOF | ||
|
||
$ cat >$dir/dune <<EOF | ||
> (library | ||
> (modes melange) | ||
> (public_name dummyfoo)) | ||
> EOF | ||
|
||
$ cat >$dir/META.dummyfoo.template <<EOF | ||
> # DUNE_GEN | ||
> EOF | ||
|
||
$ dune build @install --root $dir | ||
Entering directory '_to-install' | ||
Leaving directory '_to-install' | ||
$ cd $dir | ||
$ dune install --root . --prefix _install | ||
Installing _install/lib/dummyfoo/META | ||
Installing _install/lib/dummyfoo/dummyfoo.ml | ||
Installing _install/lib/dummyfoo/dune-package | ||
Installing _install/lib/dummyfoo/melange/dummyfoo.cmi | ||
Installing _install/lib/dummyfoo/melange/dummyfoo.cmj | ||
Installing _install/lib/dummyfoo/melange/dummyfoo.cmt | ||
$ cd .. | ||
|
||
$ export OCAMLPATH=$PWD/$dir/_install/lib | ||
|
||
$ cat >dune-project <<EOF | ||
> (lang dune 3.7) | ||
> (using melange 0.1) | ||
> EOF | ||
|
||
$ cat >dune <<EOF | ||
> (melange.emit | ||
> (target es6) | ||
> (alias melange) | ||
> (libraries dummyfoo) | ||
> (module_system es6)) | ||
> EOF | ||
|
||
$ dune build @melange 2>&1 | awk '/Internal error/,/Raised/' | ||
Internal error, please report upstream including the contents of _build/log. | ||
Description: | ||
("Option.value_exn", {}) | ||
Raised at Stdune__Code_error.raise in file |