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

akitouni pushed a commit to branch abderrahim/cargo-fix
in repository https://gitbox.apache.org/repos/asf/buildstream-plugins.git

commit fe7a893c3ee9a91ac6475b3dd8c448d2f96cfb72
Author: Abderrahim Kitouni <[email protected]>
AuthorDate: Thu Jul 28 15:51:50 2022 +0200

    cargo: fix set_ref following the latest buildstream changes
    
    See https://github.com/apache/buildstream/pull/1704
---
 src/buildstream_plugins/sources/cargo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/buildstream_plugins/sources/cargo.py 
b/src/buildstream_plugins/sources/cargo.py
index fb143ac..268f624 100644
--- a/src/buildstream_plugins/sources/cargo.py
+++ b/src/buildstream_plugins/sources/cargo.py
@@ -375,7 +375,7 @@ class CargoSource(Source):
 
     def set_ref(self, ref, node):
         node["ref"] = ref
-        self._recompute_crates(ref)
+        self._recompute_crates(node.get_sequence("ref"))
 
     def track(self, *, previous_sources_dir):
         new_ref = []

Reply via email to