-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sfdx.py/convert_sfdx_source yields incorrect path when name is provided #2793
Comments
@davidmreed you may be interested in this issue. Thanks! |
@atrancandoris Can you tell me any more about your use case? It sounds like you're probably using a monorepo containing multiple 2GP project directories; is that accurate? |
Just one directory: From
From
|
I am not able to reproduce this issue using CumulusCI 3.41 and SFDX
Would you be able to construct a minimal example repo that can cause this issue to share? |
Withdrawing the preceding; I'm able to reproduce with a clean install of SFDX. |
@atrancandoris This change was introduced by SFDX after version 7.110. If you roll back to that version, it'll be fixed. We're discussing solutions on the current version. |
Thanks for investigating! I will stick to that version for now as a workaround. |
Before downgrading to sfdx-cli 7.110 as a workaround, be aware that it can stop working: see forcedotcom/cli#1104. I have downgraded to 7.109 as a result. |
I believe this was fixed in sfdx 7.114.0 |
Describe the bug
sfdx.py/convert_sfdx_source
yields the incorrect path when the name argument is provided. The name argument passes the-n <name>
flag intosfdx
, which places the results ofsfdx force:source:convert
into a subdirectory of the same name (e.g.,output/<name>
.The particular flow I'm having issues with is
release_2gp_beta
, but even after correcting the path that is yielded fromsfdx.py/convert_sfdx_source
, am still getting errors. My workaround is to remove the addition of the-n
flag fromsfdx.py:145
and that results in the flow working just fine.I am guessing the addition of the subdirectory is a newer
sfdx
feature, as I do not seem to be getting the same behavior with an older version ofsfdx
(7.71.0 works).Reproduction steps
Steps to reproduce the behavior:
project.source_format: sfdx
cci flow run release_2gp_beta
Context
sfdx-cli/7.112.1 darwin-x64 node-v16.1.0
CumulusCI version: 3.41.0 (/usr/local/Cellar/cumulusci/3.41.0/libexec/bin/cci)
Python version: 3.9.6 (/usr/local/opt/[email protected]/bin/python3.9)
Mac OS X 11.5.1
The text was updated successfully, but these errors were encountered: