-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add autocompile support, controlled via --compile (default) and --no-compile #29
Conversation
Just to record a few of the things we discussed so we don't forget:
|
I feel strongly that it should be the default, even in the background. My main intention in adding auto compilation is to be able to distribute source code and have it be usable (including updates). Making it explicitly opt-in is not much more useful than just running 0compile explicitly, which is sufficiently awkward that nobody does it.
I've now fixed the compilation errors, and fixed the trivial selection test case failures. But I'm getting a bunch of test failures like:
Not really sure what's going on there, as it doesn't seem like the backtrace touches any of my new code (and I'm finding oUnit a little obtuse). I do spawn |
I've added formatting for these exceptions on
Perhaps your patch makes it decide to try recompiling it instead of using the older binary? |
Thanks. I rebased, and you're right, that does seem to be the reason for the failures. e.g:
I'm haven't been able out how my changes would affect that though. |
I've been wondering if we should break this work up into smaller pieces:
I've made a start on 1 and 2 here: https://github.com/0install/0install/commits/autocompile Currently, if you set
It doesn't yet implement the 0compile algorithm (e.g. adding commands and binary dependencies). Does this look like a reasonable direction? 3/4/5 are the features from your patches that aren't currently in mine. |
Yeah, this definitely seems like a reasonable approach to me :) |
OK, 1 and 2 are now done and merged. |
Discussed on the mailing list a little already, but this PR may be easier to comment / track changes.