diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-04 14:13:20 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-04 14:13:20 +0900 |
| commit | 729be19af39fb73e827bdb2798ac23942f9cf9e5 (patch) | |
| tree | 142f876c8533e312fbfddf0348195aeb3530e7d6 /internal/pkg/pkg.go | |
| parent | 4d04f86f4a85007544932a28bd4c779f8bfb561b (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/pkg.go')
| -rw-r--r-- | internal/pkg/pkg.go | 4 |
1 files changed, 2 insertions, 2 deletions
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)}, ".", |
