-
Notifications
You must be signed in to change notification settings - Fork 78
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
Force:source:pull does not respect source tracking locations outside of "packagedirectory/main/default/" #1485
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
This is definitely a breaking change with the new version of the source-tracking code base. I have various dev teams seeing this issue. They are using versions 7.145, 7.146, and 7.148. The only developer not seeing this behavior is currently on version 7.123 |
When I switch back to This is definitely a breaking change |
This issue has been linked to a new work item: W-11047555 |
@mshanemc -- I have been testing with v7.149.0 and it does appear to have corrected this issue. Thanks for the help! Please feel free to close the issue at your discretion |
Thanks @ImJohnMDaniel, |
Yup. Saw that too. Thanks for the help!! |
Summary
Since the incorporation of the new Source Tracking logic, we have seen that when we have a project with metadata in the source code repo and that metadata is outside of
packagedirectory/main/default/
folder, when you make a change to that metadata inside the scratch org, the next time you runforce:source:pull
, the CLI will extract the metadata again and place it under thepackagedirectory/main/default/
folder.Steps To Reproduce:
Repository to reproduce: dreamhouse-lwc -- ImJohnMDaniel's fork
The issue is not reproducible on the standard dreamhouse-lwc app because all source for that project exists under the
packagedirectory/main/default/
folder.I have created a fork of the dreamhouse-lwc repo, then moved all source code of the project up one level/out of the "default" folder to demonstrate the issue.
force:source:pull
It's at this point, you should see a duplicate of the TestPropertyController Apex class file now show up in the
force-app/main/default/classes/
folder. The original copy of the Apex class is still present in theforce-app/test/classes/
folder.Expected result
The CLI should not create duplicates of existing metadata in the
packagedirectory/main/default/
folder when that metadata already exists outside of the "default" folder.Actual result
The CLI is creating duplicates of existing metadata in the
packagedirectory/main/default/
folder.System Information
Additional information
The text was updated successfully, but these errors were encountered: