Skip to content

Commit

Permalink
utilize rust-installer --prepared-only flag in bootstrap tarball
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Dec 10, 2023
1 parent 9829b76 commit 91b56e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/bootstrap/src/utils/tarball.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use std::{
process::Command,
};

use crate::core::build_steps::dist::distdir;
use crate::core::builder::Builder;
use crate::core::{build_steps::dist::distdir, builder::Kind};
use crate::utils::channel;
use crate::utils::helpers::t;

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

if this.builder.kind == Kind::Install {
// We don't want archiving and compression for `x install`
cmd.arg("--prepare-only");
}

if let Some((dir, dirs)) = this.bulk_dirs.split_first() {
let mut arg = dir.as_os_str().to_os_string();
for dir in dirs {
Expand Down

0 comments on commit 91b56e4

Please sign in to comment.