-
Notifications
You must be signed in to change notification settings - Fork 6
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
std::Directory can not require its children #459
Comments
I just discovered where it is coming from: Line 299 in 01c36a8
But I really don't see why this should be the case. This is only valid when creating directories/files. Deleting a child dir before its parent is indeed not required, but imo it should not be impossible. |
I think we should either:
I ordered those proposals by order of preference (1 is my favorite) |
|
I know, still my favorite. But this is why I am making other proposals. |
I too am in favor of option 1, even if it's breaking. inmanta/inmanta-core#5677 shows that it is very difficult to get it right, and it is in all other cases considered to be the responsibility of the model developer anyway. I think we should try to fix this before the iso7 release, because it's a breaking change and it fits well with inmanta/inmanta-core#5677. |
The main difficulty with purge-on-delete (linked above) was with cross-agent dependencies. That does not apply here so my previous comment is not necessarily accurate. It may be better to just fix the specific bug and leave the rest in place. |
I am facing a mindbreaking error when trying to delete a directory
/a/b
before deleting the directory/a
. It seems that an implicit dependency makes the children always require the parent.I get this with the following model:
This is driving me nuts.
The text was updated successfully, but these errors were encountered: