Skip to content

dune fmt unexpectedly triggers menhir rules #7454

@voodoos

Description

@voodoos

Expected Behavior

I would expect dune fmt or dune build @fmt to never build anything.
(This is an assumption made by OCaml-CI for the lint-fmt job. cc @maiste)

Actual Behavior

Menhir parser that have a corresponding .mli file are generated when calling dune build @fmt

Reproduction

It was a bit subtle to reproduce and minimize the issue we encountered in Merlin.
I made a PR with what I think is a fairly minimal reproduction: #7455

Specifications

  • Version of dune: reproducing PR is based on main
  • Version of ocaml: unrelevant
  • Operating system: unrelevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions