Skip to content

Glob behaviour is weird #699

@bitbloxhub

Description

@bitbloxhub

Describe the bug

Basically, the way treefmt globs files, you need both **/filename and filename if the file could be in the repo root.

To Reproduce

Steps to reproduce the behavior:

  1. Check out skills-flake commit 703380e
  2. Run nix fmt
  3. skills-flake.lock.json is formatted

Expected behavior

skills-flake.lock.json is not formatted.

System information

Treefmt 2.5.0 via Nix.

Fine if this is expected behavior, just surprising and not documented anywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions