Closed djdv closed 3 years ago
I am sorry it is not working for you. Looks like it was broken by #38/#39. I think moving lines main.rs@214-221 to before main.rs@202 can fix it. (we need better testing) If you would like to make PR that would be grate!
@Eh2406 Thanks for the quick response! Making the suggested change has the hook working on my machine. I submitted a PR #42 that makes the basic fix, but I'm not experienced enough with this to write any tests for it. 👀
cargo-sweep f7e4cfa77a453425e1a8775ef2577d57a635f4cc rustc 1.47.0-nightly (bf4342114 2020-08-25) cargo 1.47.0-nightly (51b66125b 2020-08-19) Windows 10 (19042.450)
Inside the cargo-sweep source directory (or any Rust project) I'm invoking
cargo sweep -s
and it panicks expecting-t
to be provided, but those arguments are incompatible.-t
alone seems to work fine, but I can't test-f
since the timestamp file can't be created with-s
.This is my first time trying sweep so I'm not sure if this worked in any previous version. I'm also only a Rust user, I can't actually read or write it yet to figure out why it's going down the branch that tries to match against
--time
. I included the trace but it doesn't look super helpful. Seems to only apply to the stdlib unless I missed something.If I can help debug this somehow, let me know and I can try whatever to get more info.
For extra context, I'm trying to integrate this into an update script that updates Rust itself, then goes into each Rust project directory, pulls changes, then tries to rebuild it, using sweep to clean up and make timestamps before and after the build.
up.ps1: