diff --git a/pkg/cargo/bosh_release.go b/pkg/cargo/bosh_release.go index bd44be3c..9befde7f 100644 --- a/pkg/cargo/bosh_release.go +++ b/pkg/cargo/bosh_release.go @@ -155,7 +155,7 @@ func ReadBOSHReleaseTarball(tarballPath string, r io.Reader) (BOSHReleaseTarball if err != nil { return BOSHReleaseTarball{}, err } - _, err = io.ReadAll(r) + _, err = io.CopyBuffer(io.Discard, r, make([]byte, 1024 * 64)) return BOSHReleaseTarball{ Manifest: m, SHA1: hex.EncodeToString(sum.Sum(nil)),