Skip to content

Commit 3c441c9

Browse files
Update size in UpdateDigest() (#212)
This wasn't being updated and some registries/consumers appear to care.
1 parent aec1f02 commit 3c441c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Microsoft.NET.Build.Containers/Image.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ private void RecalculateDigest()
7070
config["created"] = DateTime.UtcNow;
7171

7272
manifest["config"]!["digest"] = GetDigest(config);
73+
manifest["config"]!["size"] = Encoding.UTF8.GetBytes(config.ToJsonString()).Length;
7374
}
7475

7576
private JsonObject CreatePortMap()

0 commit comments

Comments
 (0)