boot-dev

Boot development discussion and banter
bhagany 2018-01-07T18:58:59.000054Z

oh! hey! there are two implementations of the fileset diffing

bhagany 2018-01-07T18:59:30.000060Z

and the one that I'm having trouble with isn't the one I changed, so I am at least temporarily off the hook 🙂

richiardiandrea 2018-01-07T20:07:32.000056Z

@bhagany are there really?

richiardiandrea 2018-01-07T20:16:23.000007Z

your tests seemed thorough to me at the time, maybe I have some blame on me as well 😉

bhagany 2018-01-07T21:59:39.000041Z

yeah, here's the one I modified: https://github.com/boot-clj/boot/blob/master/boot/pod/src/boot/tmpdir.clj#L210

bhagany 2018-01-07T22:00:14.000131Z

and here's the one I'm investigating: https://github.com/boot-clj/boot/blob/master/boot/pod/src/boot/filesystem.clj#L119

bhagany 2018-01-07T22:01:43.000031Z

I don't think the second one needs to be modified in the same way, though. It only ever diffs on :time, and my modifications were only needed for diffing on nested data

bhagany 2018-01-07T22:04:19.000137Z

@richiardiandrea meant to ping you 🙂

bhagany 2018-01-07T22:35:31.000003Z

right now, I think that sync-user-dirs! is working fine, but I don't really understand why we need it where it is in the task chain

bhagany 2018-01-07T22:38:18.000042Z

it results in a mismatch between the filesystem and the fileset during the post-wrap phase, if boot/mv or (sift :move) are used

bhagany 2018-01-07T22:39:11.000004Z

and that probably isn't usually a problem, because people are generally using target and the end of their task chain, but it does its thing before sync-user-dirs! runs, and thus before the mismatch occurs

bhagany 2018-01-07T22:41:07.000062Z

however, if you're doing something like serving files from the fileset, then files that you've moved will exist until sync-user-dirs! runs, but then get moved back to their original positions afterward