See this comment: https://github.com/ocaml/dune/pull/1537#issuecomment-438438925 Making a ticket so that we don't forget to fix this. cc @ejgallego