-
Notifications
You must be signed in to change notification settings - Fork 92
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
Cache not used for 'dir' sources #356
Comments
Found this in the source code: /* We can't realistically checksum a directory, so always rebuild */
builder_cache_checksum_random (cache); Maybe this could be mentioned in the docs and I guess git might be a good alternative that could be recommend for some cases. |
Actually, to me it doesn't sound that unrealistic to checksum a directory. Rebuilding dir sources is pretty annoying for CI. The GNOME CI for example seems to do all builds twice due to cache misses for dir sources. |
Certainly one way to checksum a directory is to make an ostree commit of it. |
Trying to tackle this in #575 while still keeping the current default. |
Linux distribution and version
Debian 10
Flatpak-builder version
1.0.10
Flatpak version
1.2.5
Description of the problem
Source of type
dir
always leads to "Cache miss"Steps to reproduce
result of second run
The text was updated successfully, but these errors were encountered: