You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ak...@apache.org on 2022/07/03 18:23:50 UTC

[buildstream-plugins] 01/04: cargo: don't subscript node instances

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

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

commit df490e1fc6ba87e2f1ec4a5a1ed82a0fedfcf9a5
Author: Abderrahim Kitouni <ab...@codethink.co.uk>
AuthorDate: Sun Jul 3 19:12:43 2022 +0100

    cargo: don't subscript node instances
---
 src/buildstream_plugins/sources/cargo.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/buildstream_plugins/sources/cargo.py b/src/buildstream_plugins/sources/cargo.py
index bcfb841..ee03aea 100644
--- a/src/buildstream_plugins/sources/cargo.py
+++ b/src/buildstream_plugins/sources/cargo.py
@@ -463,9 +463,9 @@ class CargoSource(Source):
         return [
             Crate(
                 self,
-                crate["name"],
-                crate["version"],
-                sha=crate.get("sha", None),
+                crate.get_str("name"),
+                crate.get_str("version"),
+                sha=crate.get_str("sha", None),
             )
             for crate in refs
         ]