summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-03-02 09:31:19 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-03-08 14:55:39 +0000
commit2247917b2af1f5ab842c068897a956657178fb57 (patch)
tree5a487f4331b7eee901045909fcecae597db548cb
parente7a0fcfcc91177d8176f845e105545dcc87d3d44 (diff)
downloadbuildstream-2247917b2af1f5ab842c068897a956657178fb57.tar.gz
_sandboxremote.py: Use CasBasedDirectory as sandbox root
This allows bypassing the local filesystem.
-rw-r--r--buildstream/sandbox/_sandboxremote.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/sandbox/_sandboxremote.py b/buildstream/sandbox/_sandboxremote.py
index 348ebca1b..6a0f1e6d0 100644
--- a/buildstream/sandbox/_sandboxremote.py
+++ b/buildstream/sandbox/_sandboxremote.py
@@ -452,6 +452,10 @@ class SandboxRemote(Sandbox):
def _create_batch(self, main_group, flags, *, collect=None):
return _SandboxRemoteBatch(self, main_group, flags, collect=collect)
+ def _use_cas_based_directory(self):
+ # Always use CasBasedDirectory for remote execution
+ return True
+
# _SandboxRemoteBatch()
#