Skip to content

glob: !./.gradle + ./**/*.gradle unexpectedly includes files from .gradle folder #545

@vlsi

Description

@vlsi

Describe the bug

I want to cache the contents of build.gradle, build.gradle.kts, and similar files that describe Gradle configuration.
The pitfall is the file names can be customized, so I write **/*.gradle.kts and **/*.gradle masks.
However, the second mask unintentionally includes .gradle folder with temporary files.

I did try to exclude .gradle folder via !./.gradle, however it did not work.

Expected behavior

I would expect the globber to work in a Git-like fashion, so the first negation would deny descending to .gradle folder even though there are subsequent rules that match.

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