synrc / mad

⚡ MAD: Managing Application Dependencies LING/UNIX
https://mad.n2o.dev
Other
173 stars 53 forks source link

Make on Windows fails #85

Closed aztensepp closed 5 years ago

aztensepp commented 5 years ago

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.

aztensepp commented 5 years ago

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.