-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
feat(filter): --cachedir-ignore option #949
base: main
Are you sure you want to change the base?
Conversation
oop i thought adding [WIP] made it a draft automagically |
I added a directory with a CACHEDIR.TAG to |
might change it from --cachedir-ignore to --ignore-cachedir because i was copying --git-ignore but it makes more sense as --ignore-cachedir |
1707e8a
to
d6621e3
Compare
d6621e3
to
b152ad8
Compare
Hey, first thing, thanks for the pr, I am going to take a deeper look at it wen I have time. Please make sure to write tests cases and rerun the necessary tools. |
Awesome, thanks for the PR! I like the idea for sure, I'll also check it out later on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is a feature that reads data could you make it a feature in cargo toml, make it a default, just to be sure it can be disabled by user not wanting any of that
That was one of my questions -- to add a test case i would have to add stuff presumably to the |
as in, a feature that deletes the flag entirely, makes the flag a no-op, makes it not check the magic number, or what? it already only bothers to check for CACHEDIR.TAG if the flag is passed. |
yes |
which one do you mean by "yes"? i don't understand |
All of them, as I already had previous users reaching out on adding features needing dependencies or having small systems, I think that having the option to disable file reading is not a bad idea, if you have thought lmk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also like to add that before I'd consider this ready to merge, the 16 commits should be squashed into more logical units.
Hey finally had a chance to look this over. This looks good man. 👍 Just the one minor fn param. Seeing as this needs the flag to be enabled, I dont see a reason why it needs to be behind a feature flag. I do agree with cafk, if we could rebase some of those commits into a couple/few logical conventional commits. This is good to go for me 👍 |
I will take a look at the code to be sure but I trust you as you read the code, didn't had time for the moment tho. |
turns out filtering happens in multiple places
decided it makes more sense this way around
b152ad8
to
79ae70d
Compare
is that squashed enough or do you want more? |
must've accidentally re-added these while squashing and re-ordering commits
3a7872f
to
c04c903
Compare
Looks good enough |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, i know it needs tests. i've been nerd-sniped by bevy, sorry >.< |
Pull request was converted to draft
|
Description
Fixes #948.
adds the
--cachedir-ignore
option which causes eza to ignore directors with a CACHEDIR.TAG and the correct magic number. see https://bford.info/cachedir/How Has This Been Tested?
nix flake check
passes, but I haven't written formal tests. that's why it's a WIP.TODO