mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
Auto merge of #80397 - Mark-Simulacrum:fix-bare-tarball, r=pietroalbini
Use package name for top-level directory in bare tarballs This fixes a bug introduced by #79788. r? `@pietroalbini`
This commit is contained in:
commit
aef92d44e4
@ -241,10 +241,16 @@ impl<'a> Tarball<'a> {
|
||||
}
|
||||
|
||||
pub(crate) fn bare(self) -> PathBuf {
|
||||
// Bare tarballs should have the top level directory match the package
|
||||
// name, not "image". We rename the image directory just before passing
|
||||
// into rust-installer.
|
||||
let dest = self.temp_dir.join(self.package_name());
|
||||
t!(std::fs::rename(&self.image_dir, &dest));
|
||||
|
||||
self.run(|this, cmd| {
|
||||
cmd.arg("tarball")
|
||||
.arg("--input")
|
||||
.arg(&this.image_dir)
|
||||
.arg(&dest)
|
||||
.arg("--output")
|
||||
.arg(crate::dist::distdir(this.builder).join(this.package_name()));
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user