Closed pk1772 closed 3 years ago
@pk1772 - I tried to reproduce this on windows with the same plugin versions and it ignored the ReadMe.md file. That said, there are others reporting problems with forceignore behavior (see #684 and #690) and we are addressing them. The fixes will go into the next release candidate update either today or tomorrow.
One thing you can try to debug this is to modify the installed files to find out why it's not being ignored. Depending on how you installed the CLI the source is in different locations. For a default installer installation, the files will be within a path like, C:\Users\pk1772\AppData\local\sfdx
and the file you're looking for is forceIgnore.js. I would add debugging to ensure the proper forceignore file is being used and the filepath passed to denies/accepts
is correct.
@pk1772 - I left some details in the other issues about how this is happening. I'm going to close this one but please reference the others for those details. Thanks for reporting!
@shetzel I'm encountering the same issue, here is the toolset inforamtion
VERSION sfdx-cli/7.125.0 win32-x64 node-v16.13.0 @salesforce/analytics 1.0.1 @salesforce/sfdx-scanner 2.12.0 isvte-sfdx-plugin 1.1.12
Summary
After updating cli version to 7.76.1 running force:source:push fails with the following error -
ERROR running force:source:push: Expected file at path: C:\Users\pk1772\Documents\Dev\force-app\main\core\ReadMe.md-meta.xml
Steps To Reproduce:
sfdx force:source:push
to push the changesExpected result
It should not treat ReadMe.md file as custom metadata and it should be ignored as defined in .forceignore
Actual result
sfdx force:source:push
fails with:ERROR running force:source:push: Expected file at path: C:\Users\pk1772\Documents\Dev\force-app\main\core\ReadMe.md-meta.xml
Additional information
SFDX CLI Version
SFDX plugin Version
OS and version