We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6c523a7 + fe52a65 commit aef92d4Copy full SHA for aef92d4
src/bootstrap/tarball.rs
@@ -241,10 +241,16 @@ impl<'a> Tarball<'a> {
241
}
242
243
pub(crate) fn bare(self) -> PathBuf {
244
+ // Bare tarballs should have the top level directory match the package
245
+ // name, not "image". We rename the image directory just before passing
246
+ // into rust-installer.
247
+ let dest = self.temp_dir.join(self.package_name());
248
+ t!(std::fs::rename(&self.image_dir, &dest));
249
+
250
self.run(|this, cmd| {
251
cmd.arg("tarball")
252
.arg("--input")
- .arg(&this.image_dir)
253
+ .arg(&dest)
254
.arg("--output")
255
.arg(crate::dist::distdir(this.builder).join(this.package_name()));
256
})
0 commit comments