Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (41 loc) · 3.09 KB

README.md

File metadata and controls

56 lines (41 loc) · 3.09 KB

This is a reproduction of forcedotcom CLI issue 638

See forcedotcom/cli#638.

Reproduction Details

  1. Create a new scratch org using the scratch org definition file contained within this repository.

  2. Push the source (this repo) to the new scratch org: Screen shot: After push to scratch org.

  3. Log in to the scratch org and edit the Value__c field on the Value__c object. Screen shot: Editing Value__c.Value__c.

  4. Pull the source back from your scratch org: Screen shot: After pull from scratch org.

As you can see above, the Value__c field has been pulled to the incorrect location.

Reproduction Console Output

D:\sfdx_projects\forcedotcom-issue-638-repro>sfdx force:source:push
Job ID | 0Af9D00000ELDZaSAP
SOURCE PROGRESS | ████████████████████████████████████████ | 2/2 Components
=== Pushed Source
STATE  FULL NAME          TYPE          PROJECT PATH
─────  ─────────────────  ────────────  ──────────────────────────────────────────────────────────────────────
Add    Value__c           CustomObject  force-app\main\default\objects\Value__c\Value__c.object-meta.xml
Add    Value__c.Value__c  CustomField   force-app\main\default\objects\Value__c\fields\Value__c.field-meta.xml

D:\sfdx_projects\forcedotcom-issue-638-repro>echo Updated the description of Value__c.Value__c in the browser.
Updated the description of Value__c.Value__c in the browser.

D:\sfdx_projects\forcedotcom-issue-638-repro>sfdx force:source:status
=== Source Status
STATE           FULL NAME          TYPE         PROJECT PATH
=== Source Status
STATE           FULL NAME          TYPE         PROJECT PATH
──────────────  ─────────────────  ───────────  ────────────────────────────────────────────────────────────────────
──
Remote Changed  Value__c.Value__c  CustomField  force-app\main\default\objects\Value__c\fields\Value__c.field-meta.x
ml

D:\sfdx_projects\forcedotcom-issue-638-repro>sfdx force:source:pull
=== Pulled Source
STATE  FULL NAME         TYPE         PROJECT PATH
─────  ────────────────  ───────────  ───────────────────────────────────────────────────────────────
Add    objects.Value__c  CustomField  force-app\main\default\objects\Value__c\Value__c.field-meta.xml

D:\sfdx_projects\forcedotcom-issue-638-repro>

Notes

The incorrect output generated by this is stored on the Post-Force-Source-Pull branch of this repository.