Skip to content

Commit 91b56e4

Browse files
committed
utilize rust-installer --prepared-only flag in bootstrap tarball
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 9829b76 commit 91b56e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/bootstrap/src/utils/tarball.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use std::{
33
process::Command,
44
};
55

6-
use crate::core::build_steps::dist::distdir;
76
use crate::core::builder::Builder;
7+
use crate::core::{build_steps::dist::distdir, builder::Kind};
88
use crate::utils::channel;
99
use crate::utils::helpers::t;
1010

@@ -239,6 +239,11 @@ impl<'a> Tarball<'a> {
239239
.arg(&this.image_dir)
240240
.arg(format!("--component-name={}", &component_name));
241241

242+
if this.builder.kind == Kind::Install {
243+
// We don't want archiving and compression for `x install`
244+
cmd.arg("--prepare-only");
245+
}
246+
242247
if let Some((dir, dirs)) = this.bulk_dirs.split_first() {
243248
let mut arg = dir.as_os_str().to_os_string();
244249
for dir in dirs {

0 commit comments

Comments
 (0)