I am deploying a community to a scratch org, which requires me to deploy the branding assets separately. I'm trying to carry this out by using two different .forceignore files - the first one excludes the contentasset and navigation items and the second one includes them. When I copy the .forceignore file in which should exclude nothing, 90% of the time the next source push doesn't pick up any changes. I've checked the sourcePathInfos.json file and this doesn't have details of the files that should now be deployed.
Is there any way that I can kick the CLI to spot the changes?
Repository to reproduce: forceignore-problem
SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.62.1-309fe6da17 darwin-x64 node-v10.20.1
SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core):
salesforcedx 48.18.1 (core)
├─ custom-metadata 1.0.0 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.5 (core)
├─ salesforcedx-templates 48.18.0 (core)
└─ salesforce-alm 48.19.0 (core)
OS and version: MacOS 10.15.5
The workaround I currently have is to delete the sourcePathInfos.json file for the scratch org in question, then run the source push again. This does another full deployment, but as I only have 600 odd components for this project it's bearable.
Most helpful comment
The workaround I currently have is to delete the sourcePathInfos.json file for the scratch org in question, then run the source push again. This does another full deployment, but as I only have 600 odd components for this project it's bearable.