mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-30 05:40:39 +00:00
Also update renamed packages (#3502)
This commit is contained in:
parent
74c1f13e1f
commit
79ac43ca3d
@ -281,6 +281,23 @@ fn bump_crate_version(
|
||||
table["version"] = version.to_string().into();
|
||||
changed = true;
|
||||
}
|
||||
Item::None => {
|
||||
// Maybe we have a renamed package (alias = { package = "foo" })?
|
||||
let update_renamed_dep = table.get_values().iter().any(|(_, p)| {
|
||||
if let Value::InlineTable(table) = p {
|
||||
if let Some(Value::String(name)) = &table.get("package") {
|
||||
return name.value() == &package_name;
|
||||
}
|
||||
}
|
||||
|
||||
false
|
||||
});
|
||||
|
||||
if update_renamed_dep {
|
||||
table[&package_name]["version"] = version.to_string().into();
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user