-
Notifications
You must be signed in to change notification settings - Fork 273
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
"Error: Command "git rev-parse --show-toplevel" failed with code ENOENT" in watch mode #2430
Comments
This is also happening to me, only on one of my projects, the other one is working fine. Also this project was working ok before, not sure what changed, for me this is just happening whenever I try to run a garden command
|
Interesting, we haven't seen that before. Usually it only happens on Is there a local task or similar in your Garden config that might mess with the file system while Garden is starting up? |
I think we're mainly missing some error handling in our git handler. We should handle these types of things gracefully. |
I don't think so |
OK in my case it was my bad, I had a submodule listed in gitmodules that I was not using |
Fixes #2430 Also adds more specific and helpful error messages when we encounter missing/invalid submodule paths.
This also occures when you move or rename the folder of a linked module. Adjusting the module path in .garden/local-config.yml fixed it for me. |
Fixes #2430 Also adds more specific and helpful error messages when we encounter missing/invalid submodule paths.
Fixes garden-io#2430 Also adds more specific and helpful error messages when we encounter missing/invalid submodule paths.
Bug
Current Behavior
I see this error every time I run
npm install
while in watch mode:Reproducible example
Run Garden in watch mode in some demo project and run, say,
npm install is-odd
.Workaround
None that I know of.
The text was updated successfully, but these errors were encountered: