Commit 938ae14
committed
fix: include --output-dir only when output_dir is provided
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.1 parent 59785ab commit 938ae14
1 file changed
Lines changed: 17 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 251 | + | |
| 252 | + | |
254 | 253 | | |
255 | 254 | | |
256 | 255 | | |
| |||
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
305 | 316 | | |
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
| 320 | + | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| |||
0 commit comments