Skip to content

Commit 1c11823

Browse files
Make distcheck work again.
1 parent 8f2e576 commit 1c11823

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/bootstrap/check.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,10 @@ impl Step for Distcheck {
12201220
let _ = fs::remove_dir_all(&dir);
12211221
t!(fs::create_dir_all(&dir));
12221222

1223+
// Guarantee that these are built before we begin running.
1224+
builder.ensure(dist::PlainSourceTarball);
1225+
builder.ensure(dist::Src);
1226+
12231227
let mut cmd = Command::new("tar");
12241228
cmd.arg("-xzf")
12251229
.arg(builder.ensure(dist::PlainSourceTarball))

src/bootstrap/dist.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -875,9 +875,10 @@ impl Step for PlainSourceTarball {
875875
let mut tarball = distdir(build).join(&format!("{}.tar.gz", plain_name));
876876
tarball.set_extension(""); // strip .gz
877877
tarball.set_extension(""); // strip .tar
878-
if let Some(dir) = distdir(build).parent() {
878+
if let Some(dir) = tarball.parent() {
879879
t!(fs::create_dir_all(dir));
880880
}
881+
println!("running installer");
881882
let mut cmd = rust_installer(builder);
882883
cmd.arg("tarball")
883884
.arg("--input").arg(&plain_name)

0 commit comments

Comments
 (0)