You aren't doing anything wrong. Just using the system more then most
have. SInan only looks in the repo for dependencies right now. That
means that any changes need to be pushed. Also as you saw in your last
email, once a dependency is pulled it doesn't repull it. There needs
to be some type of mechenism to tell it about local dependencies. I am
working on that. In the mean time the easy fix for this is to symlink
mylib into the myapp project tree. Its not a perfect solution by any
means but it will get you through. It looks like I have some work to
doy.

On Fri, Sep 5, 2008 at 8:07 PM, Edwin <[EMAIL PROTECTED]> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to