diff options
Diffstat (limited to 'internal/pkg/tar.go')
| -rw-r--r-- | internal/pkg/tar.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go index 77e4ee27..39f55010 100644 --- a/internal/pkg/tar.go +++ b/internal/pkg/tar.go @@ -114,7 +114,9 @@ func (a *tarArtifact) Cure(t *TContext) (err error) { err = closeErr } }(tr) - tr = io.NopCloser(tr) + br := t.cache.getReader(tr) + defer t.cache.putReader(br) + tr = io.NopCloser(br) switch a.compression { case TarUncompressed: |
