I sometimes deploy metadata to Scratch Orgs, which I then want to pull into my sfdx source tree.
For example, I might be migrating metadata from a sandbox into the scratch org to package it with Unlocked Packaging. I can get the metadata into my source directory using sfdx, but sometimes a tool like Gearset is better because it lets me pick out the items I need. Gearset deploys into the scratch org, then I want to do a pull.
Or, I might be using Metadata.DeployContainer
from Apex to create Metadata records in the scratch org. They then need to be pulled down and become part of the package.
In both cases, sfdx pull seems to ignore this metadata.
I can work around by going and editing each item, saving it without any changes. This touch seems to get sfdx to notice them.
Is this expected behaviour? Is there any way around it? Having to touch every item before pulling it is really laborious.