Skip to content
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

Incremental builds #8

Open
Jeehut opened this issue Feb 7, 2016 · 2 comments
Open

Incremental builds #8

Jeehut opened this issue Feb 7, 2016 · 2 comments
Milestone

Comments

@Jeehut
Copy link

Jeehut commented Feb 7, 2016

When blade is integrated as a build script to automatically be run on each build then build times can become quite long because blade is generating all images – even if nothing has changed. Therefore it would be great if blade could detect when it has to rebuild images and otherwise just keep things as is and skip images that didn't change.

I think in order to achieve this there are several possibilities. The easiest could be that blade simply checks the last change dates of the source file and the destination file and compares those. If the destination file was last changed after the source file was changed then it could skip rebuilding the image, otherwise it would behave like now.

Alternatively blade could also generate a file (something like Bladefile.lock) which lists the date the source images were last built and check if that date is after the source images last change date and the Bladefiles last change date then it would skip the image if both cases were given.

If implemented there should also be a possibility to force rebuilding all images, something like blade --no-skip-unchanged is what I'm thinking of. We could also make it opt-in like so: blade --skip-unchanged.

What do you think? Unfortunately I can't do these changes myself since I don't speak Go (yet).

@jondot
Copy link
Owner

jondot commented Apr 14, 2016

Hey @Dschee, I missed this issue because I got no notification (dang!). Still having this problem?

@Jeehut
Copy link
Author

Jeehut commented Apr 14, 2016

Nothing changed since I created this issue, so yes, I'm still having this "problem". ;)

@jondot jondot added this to the Blade vNext milestone Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants