Closed readeral closed 3 weeks ago
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.
@readeral Thanks for the detailed writeup! I've replicated the issue, so I'll mark this as a bug and get it on our board. Looks like it might have been caused by this PR
This issue has been linked to a new work item: W-16383480
This issue has been fixed in CLI version 2.62.6 (October 16, 2024).
Summary
Between CLI versions 2.46.6 and 2.47.6 a change has occurred that causes a retrieved package to nest a duplicate of the parent folder within itself when retrieving custom objects, splitting object-meta.xml away from the rest of the metadata.
Folder structure under 2.46.6:
Folder structure under 2.47.6 and all subsequent versions of the CLI (generated using cli version 2.47.6, see below reproduction for same result generated with the latest CLI release)
Steps To Reproduce
Test
with custom fieldsCompletion
andStatus
(or whatever you want)Test
includedsf project generate
sf project retrieve start --package-name TestPackage
Expected result
(example created by running retrieve with cli v2.46.6 installed)
Actual result
(example created by running retrieve with cli v2.51.6 installed)
CLI output when retrieving the package:
System Information