When I pull down metadata from my production org (which is my devhub org), I have issues with scratch org metadata meddling with my repo. For example I have custom profiles that were created on the org the have
force-app/main/default/profiles/Custom User.profile-meta.xml In field: layout - no Layout named ActiveScratchOrg-Active Scratch Org Layout found (198:24)
This is because that profile now has the following:
<layoutAssignments> <layout>ActiveScratchOrg-Active Scratch Org Layout</layout> </layoutAssignments>
I imagine if this was correctly created in a scratch org in the first place this may not have happened but will this lead to an issue when I deploy to production eventually? Not to mention that this continues the eternal salesforce cosmic battle for "the source of truth"