Skip to content

Add output_dir option to retrieve_changes task#3901

Merged
jstvz merged 1 commit intomainfrom
add_output_dir
Jun 2, 2025
Merged

Add output_dir option to retrieve_changes task#3901
jstvz merged 1 commit intomainfrom
add_output_dir

Conversation

@vsbharath
Copy link
Copy Markdown
Contributor

@vsbharath vsbharath commented May 30, 2025

Added output_dir option to specify a custom output directory for retrieved changes
Updated retrieve_components function to handle the output_dir parameter
Modified error handling to provide clearer messages when no results are found
Updated test cases to verify the output_dir functionality

@vsbharath vsbharath requested a review from a team as a code owner May 30, 2025 06:58
@vsbharath vsbharath requested a review from jstvz May 30, 2025 07:10
@jstvz jstvz enabled auto-merge (squash) June 2, 2025 20:19
@jstvz jstvz merged commit 3e05563 into main Jun 2, 2025
22 of 24 checks passed
@jstvz jstvz deleted the add_output_dir branch June 2, 2025 20:25
rupeshjSFDC pushed a commit to jorgesolebur/CumulusCI that referenced this pull request Jun 16, 2025
Added output_dir option to specify a custom output directory for
retrieved changes
Updated retrieve_components function to handle the output_dir parameter
Modified error handling to provide clearer messages when no results are
found
Updated test cases to verify the output_dir functionality
@NicoleEnclude
Copy link
Copy Markdown

This appears to be what's triggering #3918

jstvz added a commit that referenced this pull request Aug 29, 2025
PR #3901 added the `--output-dir` option to the `retrieve_components`
task. When `output_dir` was `None`, it used the target (e.g. `force-app`) as
the value. The Salesforce CLI rejects using a package directory as
the output directory, so this caused an error reported in #3918.

This commit builds the sfdx args without `--output-dir` by default.
It appends `--output-dir <path>` only when `output_dir` is not
`None`. This lets the CLI select the default output dir when output_dir
is not given.

When output_dir is not set, files go to the package directory from the
manifest, as the CLI expects.
jstvz added a commit that referenced this pull request Sep 2, 2025
PR #3901 added the `--output-dir` option to the `retrieve_components`
task. When `output_dir` was `None`, it used the target (e.g.
`force-app`) as
the value. The Salesforce CLI rejects using a package directory as
the output directory, so this caused an error reported in #3918.

This commit builds the sfdx args without `--output-dir` by default.
It appends `--output-dir <path>` only when `output_dir` is not
`None`. This lets the CLI select the default output dir when output_dir
is not given.

When output_dir is not set, files go to the package directory from the
manifest, as the CLI expects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants