Skip to content

meson format --check-diff cannot be used with --recursive #15385

@embeddedpenguin

Description

@embeddedpenguin

This may just not be implemented yet. According to the docs this is intended, but I think --check-diff should be allowed to be used recursively.

Describe the bug
meson format --check-diff cannot be used with --recursive. Only --check-only and --inplace can be used with --recursive.

To Reproduce

meson format --check-diff --recursive

ERROR: --recursive argument requires either --inplace or --check-only option

Expected behavior
Since --check-diff should (I think) be used in place of --check-only so you get both the diffs and the exit code, it should be possible to use it with recursive.

system parameters

  • Build Type: Native build
  • OS: Gentoo Linux
  • Python: 3.13.5
  • Meson: 1.10.99 (25cd7ff)
  • Ninja: 1.13.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions