File Symbolic links are no longer working, at least they are not when using any version newer than salesforce-cli v46.6.0.
Unexpected errors are presented when pushing code to scratch orgs (sfdx force:source:push). The push/deployment process fails and throws many different errors:
- In field: page - no ApexPage named
- The specified Static Resource is not a valid zip file
- Required field is missing: content
c:COMPONENT_NAMEdoes not exist
It turned out that the missing files were symbolic links, so it started working again after downgrading to Salesforce DX 46.6.0.
Note that 46.7.0 and 46.8.0 were not released (https://developer.salesforce.com/media/salesforce-cli/releasenotes.html)
If you're facing the errors weird/unexpected error above, then you can execute the command below to fix it temporarily.
sfdx plugins:install email@example.com
Does anyone know the root cause or a better way to fix it?
P.S.: Salesforce has accepted this as a bug and now there is a public Known Issue. Please access the link below and click on "This Issue Affects me" if that's the case. https://success.salesforce.com/issues_view?Id=a1p3A0000003ebB