Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isomorphic-git error #2499

Closed
sawpatel opened this issue Sep 29, 2023 · 4 comments
Closed

isomorphic-git error #2499

sawpatel opened this issue Sep 29, 2023 · 4 comments
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@sawpatel
Copy link

sawpatel commented Sep 29, 2023

Context:
Visual Studio Code Version: 1.82.2 (Universal)
macOS: 13.6 (22G120)

using SFDC CLI:

% sf version --verbose --json
{
"cliVersion": "@salesforce/cli/2.10.2",
"architecture": "darwin-x64",
"nodeVersion": "node-v18.18.0",
"osVersion": "Darwin 22.6.0",
"shell": "zsh",
"rootPath": "/usr/local/lib/node_modules/@salesforce/cli",
"pluginVersions": [
"@oclif/plugin-autocomplete 2.3.8 (core)",
"@oclif/plugin-commands 2.2.25 (core)",
"@oclif/plugin-help 5.2.19 (core)",
"@oclif/plugin-not-found 2.4.1 (core)",
"@oclif/plugin-plugins 3.7.1 (core)",
"@oclif/plugin-search 0.0.22 (core)",
"@oclif/plugin-update 3.2.3 (core)",
"@oclif/plugin-version 1.3.10 (core)",
"@oclif/plugin-warn-if-update-available 2.1.0 (core)",
"@oclif/plugin-which 2.2.32 (core)",
"@salesforce/cli 2.10.2 (core)",
"apex 2.3.15 (core)",
"auth 2.8.17 (core)",
"data 2.5.9 (core)",
"deploy-retrieve 1.18.0 (core)",
"info 2.6.43 (core)",
"limits 2.3.34 (core)",
"login 1.2.31 (core)",
"marketplace 0.2.2 (core)",
"org 2.10.8 (core)",
"schema 2.3.26 (core)",
"settings 1.4.29 (core)",
"sobject 0.2.7 (core)",
"source 2.10.34 (core)",
"telemetry 2.3.3 (core)",
"templates 55.5.12 (core)",
"trust 2.6.13 (core)",
"user 2.3.32 (core)"
]
}

git version:

% git --version
git version 2.39.3 (Apple Git-145)

Command: sf project deploy start ... throws this error:

% sf project deploy start -x ./manifest/package.xml -l NoTestRun --ignore-conflicts
Error (1): An internal error caused this command to fail. isomorphic-git error:
Invalid checksum in GitIndex buffer: expected 000000140000024289494aa49e26943eeb73e0c0 but saw 44deeaf8bccb09857f4fe317c9db4dd0a9a93e3f
@sawpatel sawpatel added the investigating We're actively investigating this issue label Sep 29, 2023
@github-actions
Copy link

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.

@github-actions github-actions bot added the validated Version information for this issue has been validated label Sep 29, 2023
@sawpatel
Copy link
Author

I followed all the steps listed in #2422, but cannot find a workaround on this error.

@sawpatel
Copy link
Author

After spending some time, I was able to make it work.

Steps that I followed:

  • Removed Salesforce Extension Pack (latest version: 58.15.0)
  • Reinstalled the Salesforce Extension Pack (latest version: 58.15.0)
  • Changed the "Connected Environment"
  • Ran SF Project command successfully
  • Changed the "Connected Environment" to the original troublemaker
  • Ran SF Project command successfully

@sawpatel sawpatel closed this as not planned Won't fix, can't repro, duplicate, stale Sep 29, 2023
@wJavierPonce
Copy link

The workaround from @sawpatel didn't work for me :(

I'm having the same problem since some days ago.

I solved it in different ways each time:

  • Updating CLI (only first time)
  • Closing and opening VSCode
  • Undoing changes in my project files (undeleting or unmoving files)
  • Creating a new Scratch Org (Last Alternative)

I didn't get to any conclusion but I would say that this happens when you move/delete metadata files in your project. I'm working with multiple directories too.

The thing is that it's actually annoying because it's happening too often and I'm losing a lot of changes when I have to create a new Scratch Org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

2 participants