synrc / mad

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

mad does not run pre_hooks from dependencies #97

Open proger opened 5 years ago

proger commented 5 years ago

rebar.config:

{deps,
 [{brod,   ".*", {git, "git://github.com/klarna/brod.git",   {tag, "3.7.5"}}}]}.

dep/com log:

~/xient% mad dep
==> dependency: "git://github.com/klarna/brod.git" tag: {tag,"3.7.5"}
==> dependency: "https://github.com/klarna/supervisor3.git" tag: {tag,"1.1.8"}
==> dependency: "https://github.com/klarna/kafka_protocol.git" tag: {tag,
                                                                     "2.2.7"}
==> dependency: "https://github.com/zmstone/snappyer" tag: {tag,"1.2.4"}
==> dependency: "https://github.com/zmstone/crc32cer" tag: {tag,"0.1.3"}
~/xient% mad com
==> "brod"
==> "supervisor3"
==> "kafka_protocol"
==> "snappyer"
==> "crc32cer"
Line 24: warning {undefined_behaviour,brod_group_member} in "/deps/brod/src/brod_cg_commits.erl"
Line 840: warning {unused_var,'State'} in "/deps/brod/src/brod_group_coordinator.erl"
==> "/Users/proger/xient"
OK

The nif had to be compiled manually:

~/xient% (cd deps/crc32cer/; mad com)
 DEPEND crc32cer.d
 C      crc32c.c
 C      crc32c_nif.c
 LD     crc32cer.so
==> "/Users/proger/xient/deps/crc32cer"
OK

Observed on c0fc30.