Skip to content

pipeline apply: --parallel passes invalid -p flag to forjar #506

@noahgift

Description

@noahgift

Bug

apr pipeline apply manifest.yaml --parallel 4 passes -p 4 to forjar, but forjar's -p flag is --param <KEY=VALUE>, not parallelism. This causes forjar to error or misinterpret the argument.

Root Cause

In crates/apr-cli/src/commands/pipeline.rs, lines 99-104:

let parallel_str;
if let Some(p) = parallel {
    parallel_str = p.to_string();
    args.push("-p");    // Wrong! -p is --param in forjar
    args.push(&parallel_str);
}

Actual forjar -p flag

-p, --param <KEY=VALUE>    Parameter override

Forjar does not have a parallelism flag.

Expected Behavior

Either:

  1. Remove the --parallel flag from apr pipeline apply since forjar doesn't support it
  2. Or implement parallelism at the apr-cli level if needed

Fix

Remove the --parallel argument from the pipeline apply CLI definition and the pipeline.rs code, since forjar doesn't support this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions