summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarius Makovsky <traveltissues@protonmail.com>2019-11-07 09:09:01 +0000
committerDarius Makovsky <traveltissues@protonmail.com>2019-11-07 12:57:13 +0000
commitb41cfde3b19b76d3d33841aedbf135b248d4da46 (patch)
treec92b3f3468a304695e458b85a03c6e3ec572f618
parentfe2dc7a5482ddd98fdee5657d963ad8f401e5779 (diff)
downloadbuildstream-traveltissues/1186-3.tar.gz
_stream: Assert not loading both tracking and primary at the same timetraveltissues/1186-3
-rw-r--r--src/buildstream/_stream.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index f09a46185..e89d22b03 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -1180,6 +1180,13 @@ class Stream():
dynamic_plan=False,
load_refs=False):
+ # FIXME:
+ # Supplying both targets and track_targets together is deprecated behaviour
+ # which was supported by commands like `bst fetch` and `bst build --track`.
+ # This handling could be split into different code paths.
+ assert not (targets and track_targets), ("Support for targets and track targets"
+ " in the same call of Stream._load is deprecated.")
+
# Classify element and artifact strings
target_elements, target_artifacts = self._classify_artifacts(targets)