-
Notifications
You must be signed in to change notification settings - Fork 28
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
Only touch if necessary #88
Comments
Thanks, this was a huge oversight on my part. Fixing this should speed up RustyWind. Opened a PR, let me know if you can build it locally and test it. |
Cool, thanks for the PR! I'd be happy to test. For Bridgetown, these tools are installed using |
@svoop released in |
@praveenperera Works like a charm! The endless loop is now down to two runs and the rebuild is quite a bit faster. To get it down to just one run, the way rustywind is called has to be changed, but that's another problem on the Bridgetown end. Really cool such a quick fix, Christmas is a bit early this year 😉 Thanks a bunch and happy holidays! |
I'm trying to integrate rustywind into the build pipeline of a Bridgetown SSG site. However, Bridgetown uses live reloads, so whenever rustywind touches the source files, it triggers a reload which triggers rustywind, which touches the source files... you get the rap.
Checking with
stat
, rustywind in fact touches all files even if the existing file and the reordered files are identical.Would it be possible to only write files if they have to be written and to skip them if nothing has changed?
(In case this is less efficient than always writing, maybe add a
--force
argument:--write
only writes if necessary and--write --force
always writes.)The text was updated successfully, but these errors were encountered: