<div dir="ltr"><div>Hi dear list,<br></div><div>I can successfully import the dependencies I need in my node importing them manually with -pa as following:</div><div>erl -pa ebin deps/*/ebin /path/to/release/*/ebin</div><div>
<br></div><div>Then I start xref and add a release without errors.</div><div><br></div><div>Whereas when I start a node and try to add the path in this way :</div><div>code:add_patha("ebin"),</div><div>Libs = filelib:wildcard("/path/to/release/*/ebin"),</div>
<div>Deps = filelib:wildcard("deps/*/ebin"),</div><div>code:add_pathsa(Libs ++ Deps)</div><div><br></div><div>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>After that I also tried to add the directories to xref without success:</div><div><br></div><div>xref:start(xr),</div><div>[xref:add_directory(xr,D) || D <- Libs ++ Deps].</div><div><br></div><div>What do I am missing to provide all the paths that xref needs to start? </div>
<div>I really appreciate any help you can provide,</div><div><br></div><div>[Oscar]</div><div><br></div></div>