-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ocamldep reports incorrect dependency #4081
Copy link
Copy link
Closed
Description
Original bug ID: 4081
Reporter: @fpottier
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:07:29Z)
Resolution: not fixable
Priority: normal
Severity: minor
Version: 3.09.1
Target version: 4.01.0+dev
Category: ~DO NOT USE (was: OCaml general)
Related to: #8427 #4618 #7470
Bug description
ocamldep gets confused when opening modules that contain nested sub-modules.
The file attached below (sigs.mli) presents the problem. The file contains
no references to external modules, yet when ocamldep is run it will report
a dependency on an external module called "Word". (That is, "ocamldep sigs.mli"
produces "sigs.cmi: word.cmi" if the file word.mli exists.)
Steps to reproduce
save sigs.mli (attached to disk)
touch word.mli
ocamldep sigs.mli
File attachments
Reactions are currently unavailable