Skip to content

Fixes https://github.com/NuGet/Home/issues/420 - #164

Merged
alpaix merged 3 commits into
devfrom
dev-alpanov-420
Dec 23, 2015
Merged

alpaix merged 3 commits into
devfrom
dev-alpanov-420

Conversation

@alpaix

@alpaix alpaix commented Dec 23, 2015

Copy link
Copy Markdown
Contributor

Fixes NuGet/Home#420.

  • Updated extracted file LastWriteTime with a value in corresponding
    ZipArchiveEntry.
  • Added unit-test to verify the fix.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is not much point in making tests fully async, it forces all consumers to go async for no strong reason

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spotted the only consumer in a test that was async before the change. Besides GeneratePackageAsync method hides async stream writing so that entire call chain has to be async.

@yishaigalatzer

Copy link
Copy Markdown
Contributor

:shipit:

@alpaix

alpaix commented Dec 23, 2015

Copy link
Copy Markdown
Contributor Author

File NuGet.Client/src/NuGet.Core/NuGet.Common/ZipArchiveExtensions.cs doesn't seem to be used anywhere. So I went ahead and deleted it to avoid confusion and code duplication.

@yishaigalatzer

Copy link
Copy Markdown
Contributor

About the ziparchive, did you get a full build + tests passing without it? Common will not show references

@alpaix

alpaix commented Dec 23, 2015

Copy link
Copy Markdown
Contributor Author

@yishaigalatzer Full build as always! No shortcuts)))

@yishaigalatzer

Copy link
Copy Markdown
Contributor

👍

@alpaix
alpaix force-pushed the dev-alpanov-420 branch 2 times, most recently from ad7ad35 to ca4bba9 Compare December 23, 2015 19:51
+ Introduced test constant for zero byte entry content
+ Added async counterparts for AddEntry methods
+ Added AssertDirectoryExists and AssertFileExists for convenience
Fixes NuGet/Home#420
+ Updated extracted file LastWriteTime with a value in corresponding
ZipArchiveEntry.
+ Added unit-test to verify the fix.
+ Removed redundant file
NuGet.Client/src/NuGet.Core/NuGet.Common/ZipArchiveExtensions.cs
@alpaix
alpaix merged commit 24dc57e into dev Dec 23, 2015
@alpaix
alpaix deleted the dev-alpanov-420 branch December 23, 2015 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NuGet do not honor time-stamps when unpacking nupkg files

3 participants