fix: %{cmi:...} and other module artifact pforms under (include_subdirs qualified)#14498
fix: %{cmi:...} and other module artifact pforms under (include_subdirs qualified)#14498Alizter wants to merge 1 commit into
Conversation
748d4fb to
6620ad5
Compare
6620ad5 to
cd39f49
Compare
cd39f49 to
03895d4
Compare
shonfeder
left a comment
There was a problem hiding this comment.
I have one suggestion to improve (imo) readability, which is optional, but requests about test coverage for user errors, which, given my current understanding, should be addressed.
03895d4 to
bd8b1d3
Compare
|
I need to work out two things to make progress on this PR:
|
3ce789a to
d3ed695
Compare
|
Okay I've addressed (1), but (2) is trickier. I thought about ways we can mix paths and module paths like |
shonfeder
left a comment
There was a problem hiding this comment.
This looks like a really nice simplification over the first iteration! The only change that I think of as blocking here as the release note. Other suggestions are just stylistic or subjective readability notes.
I would like clarification my question about the safety of add_exn tho!
…rs qualified) Signed-off-by: Ali Caglayan <alizter@gmail.com>
d3ed695 to
254932b
Compare
shonfeder
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the explanations!
Under
(include_subdirs qualified), building any module artifact pform target (%{cmi:...},%{cmo:...},%{cmx:...},%{cmt:...},%{cmti:...}) crashes withMap.add_exn: key already existswhen two qualified subdirectories define modules with the same name.Also reproduces in this repo:
dune build %{cmi:bin/main}now works (bin/uses(include_subdirs qualified)and contains fourgroup.mlfiles in different qualified subdirs).