Skip to content

Commit e3d0ef0

Browse files
authored
Add downloaded blobs to package tarball
1 parent 1af4353 commit e3d0ef0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/package.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,15 @@ impl Package {
769769
blob::download(progress, blob, &blob_path)
770770
.await
771771
.with_context(|| format!("failed to download blob: {}", blob.get_url()))?;
772+
773+
let src = &blob_path;
774+
let dst = &path.to;
775+
progress.set_message(format!("adding file: {}", src).into());
776+
archive
777+
.builder
778+
.append_path_with_name_async(src, dst)
779+
.await
780+
.context(format!("Failed to add file '{}' to '{}'", src, dst,))?;
772781
}
773782
BuildInput::AddPackage(component_package) => {
774783
progress.set_message(format!("adding package: {}", component_package.0).into());

0 commit comments

Comments
 (0)