summaryrefslogtreecommitdiff
path: root/src/buildstream/_scheduler/jobs
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2020-04-29 16:20:53 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2020-05-03 11:52:26 +0900
commit9084ae13d1872a21ae1a3298f44e192e7cf7ca8a (patch)
treea8d4e29ed54b58307097de9fea87d01a48ae6e2e /src/buildstream/_scheduler/jobs
parent557690e9bd47757dfd1f0171202bf7d9b0578a5c (diff)
downloadbuildstream-9084ae13d1872a21ae1a3298f44e192e7cf7ca8a.tar.gz
_pluginfactory/pluginfactory.py: Add provenance to missing plugin errors
So far we were only reporting "No Source plugin registered for kind 'foo'", without specifying what bst file with line and column information, this commit fixes it. Additionally, this patch stores the provenance on the MetaSource to allow this to happen for sources.
Diffstat (limited to 'src/buildstream/_scheduler/jobs')
-rw-r--r--src/buildstream/_scheduler/jobs/jobpickler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_scheduler/jobs/jobpickler.py b/src/buildstream/_scheduler/jobs/jobpickler.py
index 1d47f67db..48e61cf5d 100644
--- a/src/buildstream/_scheduler/jobs/jobpickler.py
+++ b/src/buildstream/_scheduler/jobs/jobpickler.py
@@ -192,7 +192,7 @@ def _reduce_plugin_with_factory_dict(plugin, plugin_class_to_factory):
def _new_plugin_from_reduction_args(factory, meta_kind):
- cls, _ = factory.lookup(meta_kind)
+ cls, _ = factory.lookup(meta_kind, None)
plugin = cls.__new__(cls)
# Note that we rely on the `__project` member of the Plugin to keep