<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi All,<br></div><div style="font-family:arial,sans-serif;font-size:13px">I can successfully import the dependencies I need in my node importing them manually with -pa as following:</div>
<div style="font-family:arial,sans-serif;font-size:13px">erl -pa ebin deps/*/ebin /path/to/release/*/ebin</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Then I start xref and add a release without errors.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Whereas when I start a node and try to add the path in this way :</div>
<div style="font-family:arial,sans-serif;font-size:13px">code:add_patha("ebin"),</div><div style="font-family:arial,sans-serif;font-size:13px">Libs = filelib:wildcard("/path/to/release/*/ebin"),</div>
<div style="font-family:arial,sans-serif;font-size:13px">
Deps = filelib:wildcard("deps/*/ebin"),</div><div style="font-family:arial,sans-serif;font-size:13px">code:add_pathsa(Libs ++ Deps)</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
This does not work, despite that file:get_cwd() gives the same result as when I load the libraries manually including the paths with -pa flag. </div><div style="font-family:arial,sans-serif;font-size:13px">After that I also tried to add the directories to xref without success:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">xref:start(xr),</div><div style="font-family:arial,sans-serif;font-size:13px">[xref:add_directory(xr,D) || D <- Libs ++ Deps].</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">What do I am missing to provide all the paths that xref needs to start? </div><div style="font-family:arial,sans-serif;font-size:13px">
I really appreciate any help you can provide,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">[Oscar]</div></div>