summaryrefslogtreecommitdiff
path: root/src/buildstream/_elementsourcescache.py
Commit message (Collapse)AuthorAgeFilesLines
* Use CASCache.open()juerg/casJürg Billeter2020-12-091-1/+1
|
* cascache.py: Also fetch file blobs in _fetch_directory()Jürg Billeter2020-12-091-8/+1
| | | | | This eliminates code duplication in `ArtifactCache`, `SourceCache` and `ElementSourcesCache`.
* Add ElementSourcesCacheJürg Billeter2020-09-031-0/+337
Sources have been cached in CAS individually, except for sources that transform other sources, which have been cached combined with all previous sources of the element. This caching structure may be confusing as sources are specified in the element as a list and this is not a good fit for #1274 where we want to support caching individual sources in a Remote Asset server with a BuildStream-independent URI (especially the `directory` configuration would be problematic). This replaces the combined caching of 'previous' sources with an element-level source cache, which caches all sources of an element staged together. Sources that don't depend on previous sources are still cached individually. This also makes it possible to add a list of all element sources to the source proto used by the element-level source cache.