Skip to content

Commit

Permalink
make option --arch optional
Browse files Browse the repository at this point in the history
Having it optional makes it convenient to be used in other routines

Signed-off-by: Ritesh Raj Sarraf <[email protected]>
  • Loading branch information
Ritesh Raj Sarraf committed Sep 16, 2024
1 parent b683e4f commit e7aa75c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct DownloadBinariesAction {
package: String,
#[clap(long)]
repository: String,
#[clap(long)]
#[clap(long, required=false)]
arch: String,
#[clap(long)]
build_results_dir: Utf8PathBuf,
Expand Down
5 changes: 3 additions & 2 deletions src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ pub fn generate_monitor_pipeline(
("project", project.to_owned()),
("package", package.to_owned()),
("repository", repo.to_owned()),
("arch", arch.to_owned()),
];

let mut monitor_args = vec![
Expand All @@ -96,7 +95,9 @@ pub fn generate_monitor_pipeline(
if let PipelineDownloadBinaries::OnSuccess { build_results_dir } =
&options.download_binaries
{
let mut download_args = vec![("build-results-dir", build_results_dir.clone())];
let mut download_args = vec![("build-results-dir", build_results_dir.clone()),
("arch", arch.to_owned()),
];
download_args.extend_from_slice(&common_args);
script.push(generate_command(
"download-binaries".to_owned(),
Expand Down

0 comments on commit e7aa75c

Please sign in to comment.