I have a bit to add here. Let's use the mylib/myapp scenario. I found I must do a faxien publish before sinan will see mylib when building myapp.
In other words, if I do the sequence (on a clean system with all traces of myapp/mylib removed from the local repo and uninstalled using faxien) as follows: cd mylib sinan dist faxien install-release cd ../myapp sinan the myapp build fails. To fix this, I have to cd ../mylib; faxien publish; cd - Now sinan builds ok. Let's say I now change mylib by adding mylib2.hrl. I'm developing iteratively, so I don't want to bump the release number every 5 minutes. I've learned my lesson and after I make a dist, I do both a faxien install-release and a faxien publish of mylib. When I build, sinan does not see the new include file and I get this error: starting run [check_depends] start [check_depends] stop [build] start [build] Building /tmp/sinan_test_case/myapp/lib/myapp/src/ myapp_sup.erl [build] /tmp/sinan_test_case/myapp/lib/myapp/src/myapp_sup.erl: 10:error:can't find include lib "mylib/include/mylib2.hrl" Even after I killed sinserv and did a sinan clean, it would not find the new .hrl file. starting run [check_depends] start [depends] Pulling eunit-2.0 from repository if non-local [depends] Pulling stdlib-1.15.3 from repository if non-local [depends] Pulling mylib-0.1.0 from repository if non-local [depends] Pulling kernel-2.12.3 from repository if non-local [check_depends] stop [build] start [build] Building /tmp/sinan_test_case/myapp/lib/myapp_lib2/src/ myapp_lib2_sup.erl [build] Building /tmp/sinan_test_case/myapp/lib/myapp_lib2/src/ myapp_lib2_app.erl [build] Building /tmp/sinan_test_case/myapp/lib/myapp_lib1/src/ myapp_lib1_sup.erl [build] Building /tmp/sinan_test_case/myapp/lib/myapp_lib1/src/ myapp_lib1_app.erl [build] Building /tmp/sinan_test_case/myapp/lib/myapp/src/ myapp_sup.erl [build] /tmp/sinan_test_case/myapp/lib/myapp/src/myapp_sup.erl: 10:error:can't find include lib "mylib/include/mylib2.hrl" [build] Building /tmp/sinan_test_case/myapp/lib/myapp/src/ myapp_app.erl [sin_erl_builder fault!!] build_errors Task failed run complete with faults I had to manually remove it from ~/.sinan/repo: [EMAIL PROTECTED]:/tmp/sinan_test_case/myapp$ rm -rf /home/efine/.sinan/repo/ mylib-0.1.0/ [EMAIL PROTECTED]:/tmp/sinan_test_case/myapp$ sinan starting run [check_depends] start [check_depends] stop [build] start [build] Building /tmp/sinan_test_case/myapp/lib/myapp/src/ myapp_sup.erl [build] stop run complete What am I doing wrong? Regards, Edwin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "erlware-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/erlware-dev?hl=en -~----------~----~----~----~------~----~------~--~---
