Skip to content

Commit 1ff87ec

Browse files
Update timestamp when modifying config (#89)
Fixes #62.
1 parent 50e0afa commit 1ff87ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Microsoft.NET.Build.Containers/Image.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ public void AddLayer(Layer l)
5454
RecalculateDigest();
5555
}
5656

57-
private void RecalculateDigest() {
57+
private void RecalculateDigest()
58+
{
59+
config["created"] = DateTime.UtcNow;
60+
5861
manifest["config"]!["digest"] = GetDigest(config);
5962
}
6063

0 commit comments

Comments
 (0)