You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by GitBox <gi...@apache.org> on 2022/08/01 14:57:03 UTC

[GitHub] [buildstream-plugins] nanonyme commented on a diff in pull request #19: {git,cargo}: fix set_ref following the latest buildstream changes

nanonyme commented on code in PR #19:
URL: https://github.com/apache/buildstream-plugins/pull/19#discussion_r934626590


##########
src/buildstream_plugins/sources/cargo.py:
##########
@@ -375,7 +375,7 @@ def get_ref(self):
 
     def set_ref(self, ref, node):
         node["ref"] = ref
-        self._recompute_crates(ref)
+        self._recompute_crates(node.get_sequence("ref"))

Review Comment:
   Why is this ncessary? Does ref change to somthing else after assign?



##########
src/buildstream_plugins/sources/cargo.py:
##########
@@ -375,7 +375,7 @@ def get_ref(self):
 
     def set_ref(self, ref, node):
         node["ref"] = ref
-        self._recompute_crates(ref)
+        self._recompute_crates(node.get_sequence("ref"))

Review Comment:
   Why is this necessary? Does ref change to somthing else after assign?



-- 
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: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org