You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Create a Trailhead Playground (or Sandbox)
In Object Manager create a custom object Test with custom fields Completion and Status (or whatever you want)
Open Package Manager and create a package named TestPackage with custom object Test included
Generate a local project sf project generate
Authorise the trailhead playground
Retrieve the package with 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:
Retrieved Source
=========================================================================================================================
| State Name Type Path
| ─────── ───────────────────── ──────────── ────────────────────────────────────────────────────────────────────────────
| Created Test__c.Completion__c CustomField TestPackage/main/default/objects/Test__c/fields/Completion__c.field-meta.xml
| Created Test__c.Status__c CustomField TestPackage/main/default/objects/Test__c/fields/Status__c.field-meta.xml
| Created Test__c CustomObject TestPackage/TestPackage/main/default/objects/Test__c/Test__c.object-meta.xml
| Created Test__c-Test Layout Layout TestPackage/main/default/layouts/Test__c-Test Layout.layout-meta.xml
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
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
The text was updated successfully, but these errors were encountered: