Skip to content

Commit 8829b4d

Browse files
committed
feat: set constant gzip time to reproduce packages
1 parent 8635f21 commit 8829b4d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/UnityNuGet/RegistryCache.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,10 @@ RegistryEntry packageEntry
554554
using var memStream = new MemoryStream();
555555

556556
using (var outStream = File.Create(unityPackageFilePath))
557-
using (var gzoStream = new GZipOutputStream(outStream))
557+
using (var gzoStream = new GZipOutputStream(outStream)
558+
{
559+
ModifiedTime = DateTime.UnixEpoch
560+
})
558561
using (var tarArchive = new TarOutputStream(gzoStream, Encoding.UTF8))
559562
{
560563
// Select the framework version that is the closest or equal to the latest configured framework version

0 commit comments

Comments
 (0)