Skip to content

Commit 8d68f2f

Browse files
committed
Auto merge of #96207 - nikic:distcheck-dir, r=Mark-Simulacrum
Ensure existance of dist directory when creating tarball I'm not sure why this works in CI, but this is necessary to make distcheck (including the `x86_64-linux-distcheck` image) run on Fedora 35.
2 parents 1158ade + b914678 commit 8d68f2f

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)