Skip to content

Commit 0c947a4

Browse files
committed
chore: sync with go1.18.10
1 parent 7df2ba5 commit 0c947a4

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

internal/cache/cache.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,3 +576,15 @@ func (c *Cache) copyFile(file io.ReadSeeker, out OutputID, size int64) error {
576576

577577
return nil
578578
}
579+
580+
// FuzzDir returns a subdirectory within the cache for storing fuzzing data.
581+
// The subdirectory may not exist.
582+
//
583+
// This directory is managed by the internal/fuzz package. Files in this
584+
// directory aren't removed by the 'go clean -cache' command or by Trim.
585+
// They may be removed with 'go clean -fuzzcache'.
586+
//
587+
// TODO(#48526): make Trim remove unused files from this directory.
588+
func (c *Cache) FuzzDir() string {
589+
return filepath.Join(c.dir, "fuzz")
590+
}

internal/cache/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Extracted from `go/src/cmd/go/internal/cache/`.
44

5+
- sync with go1.18.10
56
- sync with go1.17.13
67
- sync with go1.16.15
78
- sync with go1.15.15

0 commit comments

Comments
 (0)