Deployment picking up extra unselected components when selecting file.

Issue #1842 resolved
Justin Julicher created an issue

When selecting a single field I get all components of the object getting deployed too.

The package xml generated from the log was:

2021-03-09 12:03:46,931 [440196407]  DEBUG - ilder.ForceComSfdxMetadataUtil - Created temporary package.xml file for selective deployment/retrieval:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>ContractDetail__c.PermittedUse__c</members>
        <name>CustomField</name>
    </types>
    <types>
        <members>ContractDetail__c</members>
        <name>CustomObject</name>
    </types>
    <version>51.0</version>
</Package>

To reproduce I:

  • Selected the PermittedUse__c field.
  • Deploy All Metadata
  • Scope was set to: Context
  • Run Local Tests was selected

I expected just the field to be picked up but all components of the CustomObject were too.

I’m using SFDX version:

sfdx-cli/7.89.2 win32-x64 node-v14.9.0

Comments (4)

  1. Justin Julicher reporter

    FYI Although this seems related to #1824 I believe it is different as 1824 seems to pick up unrelated object files as well.

  2. Scott Wells repo owner

    Fix committed for inclusion in the next build. It's possible it might also fix the issue reported in #1824, though since I've been unable to reproduce that one, I think perhaps we should wait until this fix has been delivered and see whether either/both can be reproduced.

  3. Log in to comment