-
Notifications
You must be signed in to change notification settings - Fork 521
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
On commiting my changes, I keep getting a command not found in PATH error #1108
Comments
Could there be something terminal specific that isn't present when you launch GitHub Desktop via the OS launcher? Or are you launching it via the terminal and somehow the It does look like some parts of the |
@shiftkey Okay, it seems that if I run
Is it possible that Output from
Note that the |
That's expected - when the app is executing Git commands we want to use the version that the app ships, so prefixing path with that value means it'll be preferred over the app.
I think when using the OS launcher to launch an app it doesn't need a shell, so registering the PATH in a different location would be necessary to get that working. Seeing other tools like JetBrains mentioned in the Desktop error makes me suspect there's a different location at play related to your profile (which your shell is then prepending values to during it's setup), but how to get that to play well with |
@shiftkey After looking around a lot I was still unable to find the path that For the meanwhile I've symlinked my node binaries to |
The problem
Every time I try to commit my changes by pressing the "Commit to {branch name}" button, I get a
command not found in PATH
error. I have some pre-commit hooks configured using Husky. These hooks useyarn
, and the error points to yarn not being found in PATH.This is weird because
git commit -m 'something'
)$PATH
does show/home/roj/.nvm/versions/node/v18.18.2/bin
. The PATH for Github Desktop does not!Release version
3.3.12-linux2 amd64
Operating system
Ubuntu 22.04.4 LTS x86_64
Steps to reproduce the behavior
yarn
. In my case I doyarn lint
which simply runs Prettier to check for lint warnings.github-desktop
, add some changes and add commit messageLog files
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: