Getting exec: "git": executable file not found in %PATH% error when build
已完成
I have a makefile in my go project.
So when I right click project, run -> go build ...
I get the following errors:
GOROOT=C:\Go #gosetup
GOPATH=C:\tools\Cmder\vendor\git-for-windows\cmd;C:\Users\myuser\go #gosetup
C:\Go\bin\go.exe test -json ./... #gosetup
go: github.com/company/go-lib/configuration@v0.0.4: git init --bare in C:\tools\Cmder\vendor\git-for-windows\cmd\pkg\mod\cache\vcs\2a44bdb5d66e3b5c510298606a1f897f9547a206f5a4bdbd392c9ee7ce5e5469: exec: "git": executable file not found in %PATH%
Process finished with exit code 1
(Note that C:\tools\Cmder\vendor\git-for-windows\cmd has git in it)
What should I do? I obviously have git in my system path. Is the build/run system in GoLand configured separately?
请先登录再写评论。
Hmm i installed git for windows and it looks like things are fixed. Weird tho, because the cmder has the same git for windows installed.