Skip to content

Commit fe53ca0

Browse files
authored
fix: cache status size calculation (#3611)
1 parent e23ac00 commit fe53ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func dirSizeBytes(path string) (int64, error) {
6464
var size int64
6565
err := filepath.Walk(path, func(_ string, info os.FileInfo, err error) error {
6666
if err == nil && !info.IsDir() {
67-
size = info.Size()
67+
size += info.Size()
6868
}
6969
return err
7070
})

0 commit comments

Comments
 (0)