-
Notifications
You must be signed in to change notification settings - Fork 421
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
Tracking Incremental Changes (Avoid re-running builds) #424
Comments
Just doesn't support this functionality natively, but there are some possible workarounds:
|
@Jumblemuddle you might use a tool like $ pip install filehash build src='source.rs':
#!/bin/sh
if [[ $(chkfilehash -c {{src}}.sha256 | grep OK) -eq 0 ]]; then
echo "No changes to rebuild"
exit 0
fi
chkfilehash {{src}} > {{src}}.sha256
echo "We will rebuild!" This requires you have Python installed already. But I'm sure there are other tools available as well. Actually makes me want to make a simple tool in Go for a tool supported on many platforms without any dependencies. 😃 |
@Jumblemuddle check out https://github.com/runeimp/filedelta if you like. 😃 |
Looks great, @runeimp! :) |
Is there a recommended way of tracking when files in a folder change and only re-running a build when it would actually create a new artifact?
I know
just
is 'just' a task runner, but using it is far more desirable then Makefiles. Having a good way of doing this kind of incremental builds (runningjust
twice in a row would cause the second run to do nothing) would be great.I suppose the user may need to have a system to generate a hash of the folder/files that they depend on and implement their own check in their
just
targets. I don't know of any tools that could do this well though.The text was updated successfully, but these errors were encountered: