-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Make (sift :move)
create resources
#680
Conversation
I'll be honest - I don't know if this is a good idea, but I think there is a genuine bug that should be addressed. The problem stems from calling `sync-user-dirs!` at the end of the task stack - doing so clobbers moves files that were moved via `(sift :move)` back to their original position on the filesystem, but does not apply the same transistion to the fileset. Files that have roles do not suffer this inconsistency. The result is that any post-wraps in the task stack will find that files in the fileset they were given don't actually exist on disk. This is also a problem when serving files from the fileset - I end up missing any files that were moved with `sift`.
I should also note that this problem also happens with |
Side-note, it might be what causes this boot-http problem as well. |
Also worth noting that if this is the way to go, one alternative untested arguably more readable solution would be to always compose the |
Here's a small build.boot I used to reproduce:
You'll also need to create a file called I'm manually calling |
I have tried this branch against my
It gets stuck at the following without further output (with
Everything works on |
@arichiardi do you have the full code somewhere I can see? |
@bhagany, no but I want to write a smaller sample. Hopefully very soon. |
This still hangs for me with the patch applied. I have not been able to understand why yet. |
I am going to ridicule myself with the following but 👍 so...your patch works, the fact that I thought it was hanging is a side effect of it: the The difference we see in behavior might be due to the platform (I am running on linux). I think we should strive to preserve the behavior but if we can't I of course prefer to have the fix in. |
Thanks all. This is a solid fix. |
This reverts commit 37fa9fb.
This reverts commit 37fa9fb.
I'll be honest - I don't know if this is a good idea, but I think
there is a genuine bug that should be addressed. The problem stems
from calling
sync-user-dirs!
at the end of the task stack - doingso clobbers moves files that were moved via
(sift :move)
back totheir original position on the filesystem, but does not apply the
same transistion to the fileset. Files that have roles do not
suffer this inconsistency.
The result is that any post-wraps in the task stack will find that
files in the fileset they were given don't actually exist on disk.
This is also a problem when serving files from the fileset - I end
up missing any files that were moved with
sift
.