Skip to content

Commit 8635f21

Browse files
committed
feat: set constant tarEntry mtime to reproduce packages
1 parent 89d479f commit 8635f21

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/UnityNuGet/RegistryCache.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,7 @@ private static async Task WriteBufferToTar(TarOutputStream tarOut, string filePa
10621062
filePath = filePath.TrimStart('/');
10631063

10641064
var tarEntry = TarEntry.CreateTarEntry($"package/{filePath}");
1065+
tarEntry.ModTime = DateTime.UnixEpoch;
10651066
tarEntry.Size = buffer.Length;
10661067
await tarOut.PutNextEntryAsync(tarEntry, cancellationToken);
10671068
await tarOut.WriteAsync(buffer, cancellationToken);

0 commit comments

Comments
 (0)