Skip to content

Modules cannot depend on eachother inside of a pack. #142

Description

@jordwalke

Inside of autopack/src/b/c.ml, place the following line:

let test = A.foo

And observe the error when compiling:

[1 of 7] Compiling B.A
[2 of 7] Compiling B.C

File "src/b/C.ml", line 2, characters 11-16:
Error: Unbound module A

Then build a second time, and it works!

Then inside of autopack/src/b/a.ml, place the following line, and see that it compiles.

let test = C.foo

There's clearly something going on here, where two builds are required for one direction of the dependency and one build is required for the other direction. I'm guessing it's because the correct ordering isn't determined by something like ocamldep for the files wihin a pack. Is this correct?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions