summaryrefslogtreecommitdiff
path: root/src/buildstream/_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_stream.py')
-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)