Skip to content

Conversation

@Octachron
Copy link
Member

The PR #12389 restricted the lookup for cmi file when compiling pa/th/name.mid.ml to {P,p}a/th/name.mid.ml which is a far too strict behavior.

This PR restores the intending behavior by looking for any cmi file in the load paths whose basename normalize to "name.cmi".

Copy link
Member

@gasche gasche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is obviously correct, but have you gone over the initial PR again to see if we made the same mistake in other places?

@Octachron
Copy link
Member Author

I have: there is only one caller of find_normalized_cmi. And all other call sites of find_uncap(⇒find_normalized) are of the form find_normalized (modname ^ ext).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants