Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vlsi opened this issue Aug 5, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@vlsi
Copy link

vlsi commented Aug 5, 2020

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.

@vlsi vlsi added the bug Something isn't working label Aug 5, 2020
@vlsi
Copy link
Author

vlsi commented Aug 5, 2020

Need to double-check the folders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant