This is an automated email from the ASF dual-hosted git repository.

tvb pushed a commit to branch tristan/sboms
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 42b0f495156b54dbe04236bfe81b8015c27912ec
Author: Tristan van Berkom <[email protected]>
AuthorDate: Tue Mar 4 15:37:14 2025 +0900

    local source: Implement collect_source_info()
---
 src/buildstream/plugins/sources/local.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/buildstream/plugins/sources/local.py 
b/src/buildstream/plugins/sources/local.py
index 2cb7bdc49..133a4250a 100644
--- a/src/buildstream/plugins/sources/local.py
+++ b/src/buildstream/plugins/sources/local.py
@@ -110,6 +110,11 @@ class LocalSource(Source):
         #
         self.__do_stage(directory)
 
+    def collect_source_info(self):
+        return [
+            SourceInfo(self.path, SourceInfoMedium.LOCAL, 
SourceVersionType.DIGEST, self.get_unique_key())
+        ]
+
     # As a core element, we speed up some scenarios when this is used for
     # a junction, by providing the local path to this content directly.
     #

Reply via email to