Bug 41157 - NuGet pack results in zip file with future dates
Summary: NuGet pack results in zip file with future dates
Status: RESOLVED FIXED
Alias: None
Product: Class Libraries
Classification: Mono
Component: WindowsBase ()
Version: 4.2.0 (C6)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: João Matos
URL:
Depends on:
Blocks:
 
Reported: 2016-05-18 15:03 UTC by Bill Holmes
Modified: 2016-06-17 17:34 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Tests to reproduce (8.84 KB, application/zip)
2016-05-18 15:03 UTC, Bill Holmes
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Bill Holmes 2016-05-18 15:03:02 UTC
Created attachment 16030 [details]
Tests to reproduce

Run the two tests to see the behavior.

Test1

nuget pack Xamarin.Google.iOS.Core.nuspec
unzip -l Xamarin.Google.iOS.Core.2.0.4.0.nupkg

Results:
  Length     Date   Time    Name
 --------    ----   ----    ----
      432  15-25-22 06:52   _rels/.rels
      932  15-25-22 07:20   Xamarin.Google.iOS.Core.nuspec
    13312  15-25-22 08:02   lib/Xamarin.iOS10/Google.Core.dll

Expected:

The dates listed should not be in the future.

Test2

mcs ziptest.cs -r:WindowsBase
mono ziptest.exe
unzip -l Output.zip

Results:
  Length     Date   Time    Name
 --------    ----   ----    ----
        6  02-15-47 13:05   test.txt
      150  02-16-47 02:57   [Content_Types].xml

Expected:

The dates listed should not be in the future
Comment 1 João Matos 2016-05-23 19:20:21 UTC
https://github.com/mono/mono/pull/3036