C:\Data\SW-Development\mad>escript.exe mad cle dep com bun mad
OK
==> dependency: "git://github.com/synrc/sh" tag: {tag,"2.11"}
escript: exception error: enoent
in function open_port/2
called as open_port({spawn_executable,false},
[stream,stderr_to_stdout,binary,exit_status,
{args,["-c",
"git clone git://github.com/synrc/sh deps/sh && cd deps/sh && git checkout \"2.11\""]},
{cd,"."},
{env,[]}])
in call from sh:run/5 (/Users/maxim/depot/o/o7/mad/deps/sh/src/sh.erl, line 43)
in call from mad_git:fetch_dep/9 (/Users/maxim/depot/o/o7/mad/src/mad_git.erl, line 78)
in call from mad_git:fetch/4 (/Users/maxim/depot/o/o7/mad/src/mad_git.erl, line 27)
in call from mad:'-main/1-fun-3-'/2 (/Users/maxim/depot/o/o7/mad/src/mad.erl, line 24)
in call from lists:foldl/3 (lists.erl, line 1263)
in call from mad:main/1 (/Users/maxim/depot/o/o7/mad/src/mad.erl, line 21)
cannot figure out how to solve it.
help appreciated.
The reason is that a sh command is required. Windows-Git comes with a MINGW64-binary of sh
Simply adding Git's bin-directory to the PATH (C:\Program Files\Git\bin)
fixes this problem.
Local Configuration:
Running Make yields:
C:\Data\SW-Development\mad>escript.exe mad cle dep com bun mad OK ==> dependency: "git://github.com/synrc/sh" tag: {tag,"2.11"} escript: exception error: enoent in function open_port/2 called as open_port({spawn_executable,false}, [stream,stderr_to_stdout,binary,exit_status, {args,["-c", "git clone git://github.com/synrc/sh deps/sh && cd deps/sh && git checkout \"2.11\""]}, {cd,"."}, {env,[]}]) in call from sh:run/5 (/Users/maxim/depot/o/o7/mad/deps/sh/src/sh.erl, line 43) in call from mad_git:fetch_dep/9 (/Users/maxim/depot/o/o7/mad/src/mad_git.erl, line 78) in call from mad_git:fetch/4 (/Users/maxim/depot/o/o7/mad/src/mad_git.erl, line 27) in call from mad:'-main/1-fun-3-'/2 (/Users/maxim/depot/o/o7/mad/src/mad.erl, line 24) in call from lists:foldl/3 (lists.erl, line 1263) in call from mad:main/1 (/Users/maxim/depot/o/o7/mad/src/mad.erl, line 21)
cannot figure out how to solve it. help appreciated.