Skip to content

Commit cefd463

Browse files
committed
Fix progress clap parsing.
1 parent 67d22ae commit cefd463

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xtask/src/build_docker_image.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub struct BuildDockerImage {
5656
long,
5757
value_parser = clap::builder::PossibleValuesParser::new(["auto", "plain", "tty"]),
5858
)]
59-
pub progress: Option<Progress>,
59+
pub progress: Option<String>,
6060
/// Do not load from cache when building the image.
6161
#[clap(long)]
6262
pub no_cache: bool,
@@ -110,7 +110,7 @@ pub fn build_docker_image(
110110
force,
111111
push,
112112
no_output,
113-
mut progress,
113+
progress,
114114
no_cache,
115115
no_fastfail,
116116
from_ci,
@@ -152,6 +152,7 @@ pub fn build_docker_image(
152152
}
153153
}
154154
let gha = std::env::var("GITHUB_ACTIONS").is_ok();
155+
let mut progress = progress.map(|x| x.parse().unwrap());
155156
if gha {
156157
progress = Some(Progress::Plain);
157158
}

0 commit comments

Comments
 (0)