summaryrefslogtreecommitdiff
path: root/buildstream/_artifact.py
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-03-06 15:34:02 +0100
committerJürg Billeter <j@bitron.ch>2019-03-16 07:24:58 +0100
commit6a5940148078ea08991bf15736283fdd978258ea (patch)
tree7aa20f2e91fd79092ec5be77b14f77c79b684d46 /buildstream/_artifact.py
parent3951eb56ceb810bc1279927efd836c833759823a (diff)
downloadbuildstream-6a5940148078ea08991bf15736283fdd978258ea.tar.gz
Change default of cache-buildtrees option to 'auto'
Caching buildtrees may significantly increase CAS disk usage. Change the default to cache buildtrees only when required for core functionality.
Diffstat (limited to 'buildstream/_artifact.py')
-rw-r--r--buildstream/_artifact.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/buildstream/_artifact.py b/buildstream/_artifact.py
index a2600b995..07c02f4f7 100644
--- a/buildstream/_artifact.py
+++ b/buildstream/_artifact.py
@@ -141,13 +141,6 @@ class Artifact():
filesvdir = assemblevdir.descend("files", create=True)
filesvdir.import_files(collectvdir)
- # cache_buildtrees defaults to 'always', as such the
- # default behaviour is to attempt to cache them. If only
- # caching failed artifact buildtrees, then query the build
- # result. Element types without a build-root dir will be cached
- # with an empty buildtreedir regardless of this configuration as
- # there will not be an applicable sandbox_build_dir.
-
if sandbox_build_dir:
buildtreevdir = assemblevdir.descend("buildtree", create=True)
buildtreevdir.import_files(sandbox_build_dir)