Skip to content

Grit checks checking filenames works differently on Windows #639

Open

Description

@TheKnarf

This custom grit check works fine for me on MacOS, but fails on a colleagues computer running Windows.
It doesn't make sense that you can't use the same checks on different operating systems, GritQL should just normalize paths to always use the unix-standard. If not I'll have to have if-cases based on host OS in all of my tests?

Image

Activity

  1. TheKnarf commented on May 12, 2025

    @TheKnarf
    Author

    Is there even a way in GritQL to have an if-statement that switches based on host os?

  2. morgante commented on May 13, 2025

    @morgante
    Collaborator

    Agreed we should normalize the file paths.

  3. added a commit that references this issue on Jun 26, 2025
    1edf922
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions