-
Notifications
You must be signed in to change notification settings - Fork 585
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
Fallback when caching fails #1093
Conversation
so when are we rerunning the script exactly? |
When an exception occured in the loading code (from the caching logic). Because if a error happens in user code it is handled here and the function returns |
Yes! So normal build error in user code still fails in first try? Excellent!
|
Yes that's how it's supposed to be, maybe that would be a good test though :) |
Well it's not actually that simple, there are a wide range of scenarios where this is not correct, for example: Loading the assembly already executes user code (for example assembly level attribute constructors...). If they throw we will recompile as well... On the other hand if the |
so what do we do? |
Nevertheless I think this is an improvement for now. It quite unlikely that people do such crasy things in their build scripts or that the cache can be loaded, has the type we are looking for, but it is missing the member we search for (maybe with an FCS update, but even then we should see it here first in Bootstrap/Unit tests) |
I can add a unit test for the obvious case of |
sounds great |
See discussion in #1088.