Added
- Cache mounts sharing mode can now be specified via
RUN --mount type=cache,sharing=shared
viaCACHE --sharing=shared
. Allowed values arelocked
(default - lock concurrent acccess to the cache),shared
(allow concurrent access) andprivate
(create a new empty cache on concurrent access).
Changed
- Increases the cache limit for local and git sources from 10% to 50% to support copying large files (e.g. binary assets).
- The default cache mount sharing mode is now
locked
instead ofshared
. This means that if you have multiple builds running concurrently, they will block on each other to gain access to the cache mount. If you want to share the cache as it was shared in previous version of Earthly, you can useRUN --mount type=cache,sharing=shared
orCACHE --sharing=shared
.
Fixed
CACHE
command was not being correctly used inIF
,FOR
,ARG
and other commands. #2330- Fixed buildkit gckeepstorage config value which was was set to 1000 times larger than the cache size, now it is set to the cache size.
- Fixed Earthly not detecting the correct image digest for some images loaded in
WITH DOCKER --load
and causing cache not to be bust correctly. #2337 and #2288