Skip to content

cargo-cleanme v0.1.3

Choose a tag to compare

@github-actions github-actions released this 05 Oct 01:33
· 291 commits to main since this release

cargo-cleanme v0.1.3 — self-update works

This release carries two defect fixes, both found by the project's own
post-release verification rather than by a user report.

cargo cleanme update can now complete a commit

update had never once succeeded, in any published version. The identity check
that guards the commit ran the downloaded candidate with no arguments, so it
compared the binary's default routine-scan report against a version string that
can never match — and, before failing, it performed a filesystem scan of the
whole machine.

The failure was safe: the transaction aborted, the live binary was left
untouched, and the error named the reason. Nothing was ever corrupted. But the
feature did not work.

Fixed by invoking the candidate with --version, which is bounded and produces
exactly the identity the validator requires. The test fixture that should have
caught this printed the identity for any invocation, so it could not tell a
correct call from the wrong one; it now answers only for --version.

If you are on 0.1.1 or 0.1.2, you cannot use update to reach this
release.
Upgrade with Cargo instead:

cargo install cargo-cleanme --locked --force

A relative scan root now resolves like an absolute one

cargo cleanme scan some/dir reported no groups and exited 0, because the
relative manifest path was passed to Cargo with the child's working directory
set to that manifest's own parent. The absolute spelling was always correct.

Relative and absolute roots now produce identical counters, groups, and bytes.
The workaround from the 0.1.2 notes is no longer needed, though an absolute path
still costs nothing.

Install

# from source
cargo install cargo-cleanme --locked

# direct binary (Linux; `uname -m` is x86_64 or aarch64, which is the triple)
curl -fsSLO https://github.com/dbowm91/cargo-cleanme/releases/download/v0.1.3/cargo-cleanme-$(uname -m)-unknown-linux-gnu
sha256sum -c cargo-cleanme-$(uname -m)-unknown-linux-gnu.sha256

install.sh (Linux/macOS) and install.ps1 (Windows) are attached and verify
the .sha256 sidecar of every asset before installing anything.