juergbi commented on code in PR #2099:
URL: https://github.com/apache/buildstream/pull/2099#discussion_r2675614790


##########
src/buildstream/source.py:
##########
@@ -927,7 +929,16 @@ def set_ref(self, ref, node):
         """
         raise ImplError("Source plugin '{}' does not implement 
set_ref()".format(self.get_kind()))
 
-    def track(self, *, previous_sources_dir: Optional[str] = None) -> 
SourceRef:
+    def load_source_provenance(self, node: MappingNode) -> None:
+        raise ImplError("Source plugin '{}' does not implement 
load_source_provenance()".format(self.get_kind()))
+
+    def get_source_provenance(self) -> SourceProvenance:
+        raise ImplError("Source plugin '{}' does not implement 
get_source_provenance()".format(self.get_kind()))
+
+    def set_source_provenance(self, source_provenance: SourceProvenance):
+        raise ImplError("Source plugin '{}' does not implement 
set_source_provenance()".format(self.get_kind()))

Review Comment:
   To retain backward compatibility, we can't require source plugins to 
implement these methods. I.e., we need (trivial) default implementations for 
any method that is called unconditionally by the core. API documentation will 
be required as well, of course.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to