Closed ViktorHofer closed 3 days ago
When roundtripping a TarEntry from TarReader back to TarWriter, the Stream must be copied into a MemoryStream as the returned TarEntry Stream is not seekable.
Fixes https://github.com/dotnet/arcade/issues/15232 but for main
Also simplified a few code blocks and made it more readable. Tested locally.
The patch in https://github.com/dotnet/sdk/pull/45207 works as expected.
When roundtripping a TarEntry from TarReader back to TarWriter, the Stream must be copied into a MemoryStream as the returned TarEntry Stream is not seekable.
Fixes https://github.com/dotnet/arcade/issues/15232 but for main
Also simplified a few code blocks and made it more readable. Tested locally.