Skip to content

After upgrading opam libraries: make inconsistent assumptions over interface #1893

@copy

Description

@copy

I just upgraded tls and got a spurious "make inconsistent assumptions over interface Tls" error. It goes away after dune clean.

To reproduce, create these files:

(library (name lib) (modules lib) (libraries tls))
(executable (name app) (modules app) (libraries lib))

(* app.ml *)
Lib.main ()

(* lib.ml *)
let main () = ()
let _ = Tls.Engine.server

(* lib.mli *)
val main : unit -> unit

And run the following steps:

  • opam install --yes tls=0.9.3
  • dune build app.exe
  • opam install --yes tls=0.10.1
  • dune build app.exe

Tested on dune 1.7.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions