Skip to content

Commit b914678

Browse files
committed
Ensure existance of dist directory when creating tarball
1 parent e2661ba commit b914678

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootstrap/tarball.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,13 @@ impl<'a> Tarball<'a> {
262262
t!(std::fs::rename(&self.image_dir, &dest));
263263

264264
self.run(|this, cmd| {
265+
let distdir = crate::dist::distdir(this.builder);
266+
t!(std::fs::create_dir_all(&distdir));
265267
cmd.arg("tarball")
266268
.arg("--input")
267269
.arg(&dest)
268270
.arg("--output")
269-
.arg(crate::dist::distdir(this.builder).join(this.package_name()));
271+
.arg(distdir.join(this.package_name()));
270272
})
271273
}
272274

0 commit comments

Comments
 (0)