tbillington / kondo

Cleans dependencies and build artifacts from your projects.
MIT License
1.79k stars 51 forks source link

`--ignored-dirs` argument ignores the project itself #93

Closed orhun closed 1 year ago

orhun commented 1 year ago

I'm not sure if this is the expected behavior but I came across this issue while I was working on #92

To reproduce:

$ cargo new repro
$ cargo build
# target directory is created
$ kondo
Projects cleaned: 0, Bytes deleted: 0.0B
# nothing is cleaned

I think this is due to:

https://github.com/tbillington/kondo/blob/51828a1e96b0d0bdfd04dee210d30d77888172a9/kondo/src/main.rs#L57-L61

might be regression in #90

tbillington commented 1 year ago

Oh yep, I see what's happening, nice catch.

tbillington commented 1 year ago

Should be fixed in https://github.com/tbillington/kondo/commit/a48eb0968fea7e5436843b6a04cbdf86b8f8e263. Please let me know if there was still any issues :)

orhun commented 1 year ago

Works fine now, thank you for the fix!