-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
NX Passed 11161 file paths to Git to hash, but received 11148 hashes. #9946
Comments
It appears to be related to having
|
I now realised this is a In this setting I do get the error immediately
But in this setting which is similar except for the
|
Turned out the problem was that |
…og one of the missing files When executing parallel targets using e.g. run-commands missing entries in .gitignore may lead to temp files being passed to "git hash-object" which when git executes have been deleted resulting in mismatch between number of files requested and hashes returned. git reports the error and this PR will make sure that report is passed in the error thrown. This will make problem resolution a lot faster. ISSUES CLOSED: nrwl#9946
…og one of the missing files When executing parallel targets using e.g. run-commands missing entries in .gitignore may lead to temp files being passed to "git hash-object" which when git executes have been deleted resulting in mismatch between number of files requested and hashes returned. git reports the error and this PR will make sure that report is passed in the error thrown. This will make problem resolution a lot faster. ISSUES CLOSED: nrwl#9946
…og one of the missing files (#10134) When executing parallel targets using e.g. run-commands missing entries in .gitignore may lead to temp files being passed to "git hash-object" which when git executes have been deleted resulting in mismatch between number of files requested and hashes returned. git reports the error and this PR will make sure that report is passed in the error thrown. This will make problem resolution a lot faster. ISSUES CLOSED: #9946
I still get this error using Nx v14.1.7, Node v16.15 . Do you know how to fix this? The only workaround that I found is to restart my computer... My error message:
|
I think you have to run git hash-object and add the folder with the error to .gitignore. |
thank you! I found out that the error happens as soon as I generate files outside the Nx scope (in my case a build from pkg) that's recognized by git. As soon as I add these files to .gitignore the problem is fixed. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
This is effectively a re-open of : #8779
After upgrading
I have frequent builds on my Jenkins builds failing with errors like
> NX Passed 11161 file paths to Git to hash, but received 11148 hashes.
Expected Behavior
git hash-object
e.g.fatal: Cannot open 'xxxx': No such file or directory
Steps to Reproduce
Have not seen the pattern that causes these errors to occur
The proposed improvement in "Expected Behaviour" will not solve the problem but will
.gitignore
and this might also be a solution to my problem, but which directory ??Failure Logs
Environment
The text was updated successfully, but these errors were encountered: