diff options
author | Darius Makovsky <traveltissues@protonmail.com> | 2019-11-07 09:09:01 +0000 |
---|---|---|
committer | Darius Makovsky <traveltissues@protonmail.com> | 2019-11-07 11:56:13 +0000 |
commit | e82e1387292efc3b71602012a119cd9f4e6937b0 (patch) | |
tree | e17cb52ca01ccf8cfdd7673b0de035bdd93b510e | |
parent | 8245b1ed1f0fe3975f61e477540ca6b338687ba1 (diff) | |
download | buildstream-e82e1387292efc3b71602012a119cd9f4e6937b0.tar.gz |
_stream: Assert not loading both tracking and primary at the same time
-rw-r--r-- | src/buildstream/_stream.py | 7 |
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) |