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

fix: --ignore_dir now work as expected #207

Closed
wants to merge 4 commits into from

Conversation

gosuwachu
Copy link
Contributor

@gosuwachu gosuwachu commented Dec 27, 2023

Fixes #196. Paths and ignore directories are canonicalized before comparison. E.g. this now works as expected:

cargo run -- -i $(pwd)/../dua-cli/target i ../dua-cli

@gosuwachu gosuwachu changed the title fix ignore dirs wip fix: ignore directories now work as expected Dec 27, 2023
@gosuwachu gosuwachu marked this pull request as ready for review December 27, 2023 20:43
@gosuwachu gosuwachu changed the title fix: ignore directories now work as expected fix: --ignore_dir now work as expected Dec 28, 2023
@gosuwachu
Copy link
Contributor Author

ping, in case you have missed this @Byron :)

Also add more debugging information to the log, and allow `debug`
logging to show up in there.

While at it, assure that performance won't be affected too strongly
when a lot of directories are used by using a set instead.
Copy link
Owner

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for getting this fix started, and sorry for the delay! I must have archived the 'ready for review' email by mistake, and thus failed to follow up.

With that said, it seems to work now and performance with the usage of ignore-dirs seems acceptable. While I can imagine ways to improve performance, I didn't profile it yet. Thus, let's fix the bug first and then see if there are issues with performance later.

@Byron
Copy link
Owner

Byron commented Jan 3, 2024

Closing, as the commits are merged but GitHub can't detect it due to my most recent changes to the patch queue.

@Byron Byron closed this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple dirs in --ignore-dirs not working as expected
3 participants