-
Notifications
You must be signed in to change notification settings - Fork 14
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
Disallow nesting apply
functions
#25
Comments
I ran into this issue just now; my expectation is that nesting calls to Is there a reason that disallowing nesting is preferable to the union behaviour above? |
The reason this is currently the case is that when applying patches they get set to a global variable which is then used by the We could use a stack of |
I've started playing around in a draft PR here (I still would need to add documentation): #90 But indeed I hadn't thought about locking problems! My proposal was simply to use patches from the current PatchEnv when applying the new patches too. |
This seems like an orthogonal problem. |
I just brought it up as I expected whatever would fix #89 could also possibly fix this. But yes we can fix both of these issues separately |
Closed by #90 |
Nesting apply calls like:
will result in only the last patch (
patch_file_paths
) being applied. Documentation needs to be improved regarding applying multiple patches along with throwing an exception if nested apply calls are detected.The text was updated successfully, but these errors were encountered: