From: Scott Worley Date: Fri, 9 Jul 2021 22:31:47 +0000 (-0700) Subject: Show filename being hashed X-Git-Tag: v3.0.5~1 X-Git-Url: http://git.scottworley.com/pinch/commitdiff_plain/d66db88a3054c3c02e7594dc231616d1b0e785b3 Show filename being hashed This is handy for identifying which file is corrupt in the nix store. --- diff --git a/Changelog b/Changelog index 04655b3..0f0dc74 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,6 @@ ## [Unreleased] +### Changed +- Show filename being hashed. Helps find nix store corruption. ## [3.0.4] - 2021-06-07 diff --git a/pinch.py b/pinch.py index 9555d74..18055dc 100644 --- a/pinch.py +++ b/pinch.py @@ -351,7 +351,7 @@ def fetch_with_nix_prefetch_url( assert empty == '' v.check("Verifying nix-prefetch-url's digest", to_Digest16(v, Digest32(prefetch_digest)) == digest) - v.status("Verifying file digest") + v.status("Verifying digest of %s" % path) file_digest = digest_file(path) v.result(file_digest == digest) return path # type: ignore # (for old mypy)