remote source tracking is wrong
Summary
sometimes it thinks the remote changed is an add, after you ask it repeatedly (see repro)
it's losing the local source path when it thinks things are an add
Steps To Reproduce:
<clone dreamhouse>
sfdx force:org:create -f config/project-scratch-def.json -s -a dreamhouse-org -v DEVHUB
sfdx force:source:push
this is correct
➜ concise-qa git:(main) ../../plugin-source/bin/dev force:source:status
Source Status
STATE FULL NAME TYPE PROJECT PATH
────────── ───────── ─────── ────────────
Remote Add Admin Profile undefined
➜ concise-qa git:(main) ../../plugin-source/bin/dev force:source:status --concise
No local or remote changes found.
remove **/profiles/** from forceignore. The profile should have appeared
➜ concise-qa git:(main) ../../plugin-source/bin/dev force:source:status --concise
No local or remote changes found.
➜ concise-qa git:(main) ✗ ../../plugin-source/bin/dev force:source:status
Source Status
STATE FULL NAME TYPE PROJECT PATH
────────── ───────── ─────── ────────────
Remote Add Admin Profile undefined
make changes in a one remote and one local apex class (this is good)
➜ concise-qa git:(main) ✗ ../../plugin-source/bin/dev force:source:status --concise
Source Status
STATE FULL NAME TYPE PROJECT PATH
────────────── ──────────────── ───────── ───────────────────────────────────────────────────────
Local Changed GeocodingService ApexClass force-app/main/default/classes/GeocodingService.cls
Remote Changed PagedResult ApexClass force-app/main/default/classes/PagedResult.cls-meta.xml
Remote Changed PagedResult ApexClass force-app/main/default/classes/PagedResult.cls
add **/classes/** to the ignore file (this is good--they are omitted)
➜ concise-qa git:(main) ✗ ../../plugin-source/bin/dev force:source:status --concise
No local or remote changes found.
this should have returned the same results as before but
- remote add should be changed
- path is missing even though local files exist
- [local is fine]
➜ concise-qa git:(main) ✗ ../../plugin-source/bin/dev force:source:status
Source Status
IGNORED STATE FULL NAME TYPE PROJECT PATH
───────── ───────────── ──────────────── ───────── ───────────────────────────────────────────────────
true Local Changed GeocodingService ApexClass force-app/main/default/classes/GeocodingService.cls
undefined Remote Add PagedResult ApexClass undefined
undefined Remote Add Admin Profile undefined
➜ concise-qa git:(main) ✗
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
This issue has not received a response in 60 days. It will auto-close in 7 days unless a response is posted.