Attention needed from Owners Override
David Koloski has uploaded the change for review![Open in Gerrit]()
David Koloski would like Owners Override to review this change.
Commit message
[generate_cargo] Strip suffix from proc-macro deps
Proc macro crates get third-party target names which include a trailing
'_proc_macro'. These need to be removed when generating manifest
dependencies for cargo-based workflows.
Change-Id: Id0c342eb0cf11d75830b5488cabbf291abfc34c4
Change diff
diff --git a/scripts/generate_cargo.py b/scripts/generate_cargo.py
index 115c3a0..a6d0d2d 100755
--- a/scripts/generate_cargo.py
+++ b/scripts/generate_cargo.py
@@ -426,6 +426,8 @@
# versions of the same crate declared with different
# features.
continue
+ # Remove the trailing suffix from proc-macro crates
+ version = version.removesuffix("_proc_macro")
dep_crate_names.add(crate_name)
version = version.replace("_", ".")
fout.write('[%s."%s"]\n' % (dep_type, crate_name))
Change information
Files:
- M scripts/generate_cargo.py
Change size: XS
Delta: 1 file changed, 2 insertions(+), 0 deletions(-)
Open in GerritRelated details
Attention is currently required from:
Submit Requirements:
Code-Review
Review-Enforcement
Gerrit-MessageType: newchange
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Id0c342eb0cf11d75830b5488cabbf291abfc34c4
Gerrit-Change-Number: 1291625
Gerrit-PatchSet: 2
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
.