-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tar checksum calculation bug #72139
Conversation
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsCommit 1959b35: Fix tar checksum calculation bugI noticed that after rewriting some of the code to adapt it to the async methods, I accidentally added the final checksum instead of overriding it. I fixed it, and make sure to add a bunch of checksum calculation tests for different entry types and formats. Made sure to reuse as much code as possible in the tests. Commit 4200f2e: Rename TarEnrty test filesI noticed some test files had the original classnames with the format at the end (TarEntryGnu, TarEntryPax...). I renamed it to the official name we approved (GnuTarEnty, PaxTarEntry...). Commit 2016fbd: Merge await using declarations with usagesSome of the tests I submitted in the PR that implemented the Async methods, were still awaiting
|
src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarHeader.Write.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Commit 1959b35: Fix tar checksum calculation bug
I noticed that after rewriting some of the code to adapt it to the async methods, I accidentally added the final checksum instead of overriding it. I fixed it, and make sure to add a bunch of checksum calculation tests for different entry types and formats. Made sure to reuse as much code as possible in the tests.
Commit 4200f2e: Rename TarEnrty test files
I noticed some test files had the original classnames with the format at the end (TarEntryGnu, TarEntryPax...). I renamed it to the official name we approved (GnuTarEnty, PaxTarEntry...).
Commit 2016fbd: Merge await using declarations with usages
Some of the tests I submitted in the PR that implemented the Async methods, were still awaiting
IAsyncDisposable
objects in two lines. I just merged them into a single line.