holmgr / cargo-sweep

A cargo subcommand for cleaning up unused build files generated by Cargo
MIT License
693 stars 31 forks source link

[ERROR] Failed to clean "…": second time provided was later than self #52

Closed sjackman closed 3 years ago

sjackman commented 3 years ago
$ cargo install cargo-sweep
Ignored package `cargo-sweep v0.5.0` is already installed, use --force to override
$ cargo sweep -s
$ cat sweep.timestamp
{"secs_since_epoch":1616789097,"nanos_since_epoch":156271000}
$ cargo build
$ cargo sweep -f
cargo sweep [ERROR] Failed to clean "…": second time provided was later than self

Any ideas what went wrong here? I don't see this error message string second time provided was later than self in the source code.

regexident commented 3 years ago

@sjackman the error message was coming from std::time::SystemTimeError, returned by std::time::SystemTime::elapsed(), for what it's worth.