From d66db88a3054c3c02e7594dc231616d1b0e785b3 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 9 Jul 2021 15:31:47 -0700 Subject: [PATCH 1/1] Show filename being hashed This is handy for identifying which file is corrupt in the nix store. --- Changelog | 2 ++ pinch.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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) -- 2.44.1