-
Notifications
You must be signed in to change notification settings - Fork 454
fix(module_compilation): add dep to original source file #12774
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
8114ac4 to
ba8200c
Compare
|
|
||
| let source_without_pp ~ml_kind t = | ||
| let source = | ||
| match (ml_kind : Ml_kind.t) with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this might need an adjustment for sources without mli's. That is, when ml_kind = Intf but there's not t.source.files.intf we should fall back to the .impl.
Would be great to have a test for this as well if you have the time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, will have a look.
|
@anmonteiro Can you say a few words what this change is needed? |
|
Here is the reproduction case: #12770 |
Thanks! |
|
@nojb any other questions or concerns about this change or its implementation that I should consider? |
| ; A "-c" | ||
| ; Command.Ml_kind.flag ml_kind | ||
| ; Dep src | ||
| ; Hidden_deps (Dep.Set.of_files (Option.to_list original)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to leave a comment why we need the source file here. It is in fact only needed for sandboxed builds as far as I can tell.
No description provided.