Skip to content

Commit 4d64c61

Browse files
committed
close write end instead of read end of pipe
1 parent faa9e73 commit 4d64c61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

actionsdotnetactcompat/action_cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (cache *ActionCacheBase) GetTarArchive(ctx context.Context, cacheDir, sha,
3535
pr, pw := io.Pipe()
3636
cleanIncludePrefix := path.Clean(includePrefix)
3737
go func() {
38-
defer func() { _ = pr.Close() }()
38+
defer func() { _ = pw.Close() }()
3939
writer := tar.NewWriter(pw)
4040
defer func() { _ = writer.Close() }()
4141
reader, err := os.Open(cache.mapping[cacheDir+"@"+sha])

0 commit comments

Comments
 (0)