Add output_dir option to retrieve_changes task#3901
Merged
Conversation
jstvz
approved these changes
Jun 2, 2025
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
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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