From fe53ca0cd4e99d155325c7b7c1f1f733951af5ab Mon Sep 17 00:00:00 2001 From: Mitsuo Heijo <25817501+johejo@users.noreply.github.com> Date: Sat, 18 Feb 2023 10:41:29 +0900 Subject: [PATCH] fix: cache status size calculation (#3611) --- pkg/commands/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/commands/cache.go b/pkg/commands/cache.go index f95fdfaec614..6fdaebaede8f 100644 --- a/pkg/commands/cache.go +++ b/pkg/commands/cache.go @@ -64,7 +64,7 @@ func dirSizeBytes(path string) (int64, error) { var size int64 err := filepath.Walk(path, func(_ string, info os.FileInfo, err error) error { if err == nil && !info.IsDir() { - size = info.Size() + size += info.Size() } return err })