From 729be19af39fb73e827bdb2798ac23942f9cf9e5 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 4 Jun 2026 14:13:20 +0900 Subject: internal/pkg: rename archive checksum helpers These names are more consistent with other helper names, so rename them while the API is still internal. Signed-off-by: Ophestra --- internal/pkg/pkg.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/pkg/pkg.go') diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go index d98b3753..8b022d1f 100644 --- a/internal/pkg/pkg.go +++ b/internal/pkg/pkg.go @@ -1007,7 +1007,7 @@ func (c *Cache) Scrub(checks int) error { pathname := dir.Append(ent.Name()) if ent.IsDir() { - if err := HashDir(got, pathname); err != nil { + if err := SumDir(got, pathname); err != nil { addErr(pathname, err) return true } @@ -2132,7 +2132,7 @@ func (c *Cache) cure(a Artifact, curesExempt bool) ( } var gotChecksum Checksum - if err = HashFS( + if err = SumFS( &gotChecksum, dotOverrideFS{os.DirFS(t.work.String()).(dirFS)}, ".", -- cgit v1.3.1