mozilla / cargo-vet

supply-chain security for Rust
Apache License 2.0
621 stars 43 forks source link

Avoid writing `config.toml` and other files if no significant changes. #595

Closed anforowicz closed 4 months ago

anforowicz commented 4 months ago

After this commit audits.toml, config.toml, and imports.lock will not be written if their contents wouldn't have changed ("contents" in a business logic sense - ignoring comments and/or formatting differences).

Fixes https://github.com/mozilla/cargo-vet/issues/589

anforowicz commented 4 months ago

/cc @danakj

anforowicz commented 4 months ago

Ooops... I neglected to update test expectations... Let me fix this...

anforowicz commented 4 months ago

Ooops... I neglected to update test expectations... Let me fix this...

Done

anforowicz commented 4 months ago

Abandoning this PR based on https://github.com/mozilla/cargo-vet/issues/589#issuecomment-1998315628