Skip to content

Commit 643e941

Browse files
committed
Adopt some new async tar APIs
1 parent 0febcd6 commit 643e941

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Microsoft.NET.Build.Containers/LocalDocker.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static async Task WriteImageToStream(Image x, string name, string tag, St
5050

5151
// Stuff that (uncompressed) tarball into the image tar stream
5252
string layerTarballPath = $"{d.Digest.Substring("sha256:".Length)}/layer.tar";
53-
writer.WriteEntry(localPath, layerTarballPath);
53+
await writer.WriteEntryAsync(localPath, layerTarballPath);
5454
layerTarballPaths.Add(layerTarballPath);
5555
}
5656

@@ -64,7 +64,7 @@ public static async Task WriteImageToStream(Image x, string name, string tag, St
6464
DataStream = configStream
6565
};
6666

67-
writer.WriteEntry(configEntry); // TODO: asyncify these when API available (Preview 7)
67+
await writer.WriteEntryAsync(configEntry);
6868
}
6969

7070
// Add manifest
@@ -87,7 +87,7 @@ public static async Task WriteImageToStream(Image x, string name, string tag, St
8787
DataStream = manifestStream
8888
};
8989

90-
writer.WriteEntry(manifestEntry); // TODO: asyncify these when API available (Preview 7)
90+
await writer.WriteEntryAsync(manifestEntry);
9191
}
9292
}
9393
}

0 commit comments

Comments
 (0)