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

utop: warning when modules collide with utop deps (will become error in 5.1) #8735

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(lang dune 3.10)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
React.run ();;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(library
(name react))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let run () = print_endline "hello in utop"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ opam_prefix="$(opam var prefix)"
$ export BUILD_PATH_PREFIX_MAP="/OPAM_PREFIX=$opam_prefix:$BUILD_PATH_PREFIX_MAP"

$ dune utop react -- init_react.ml
File "react/react.cma(React)", line 1:
Warning 31 [module-linked-twice]: files react/react.cma(React) and /OPAM_PREFIX/lib/react/react.cma(React) both define a module named React
hello in utop
Loading