Skip to content

Commit 550d6d7

Browse files
committed
fix(package): Register workspace member renames in overlay
This was reported at #10948 (comment) I suspect there is a second bug here because my debugging only showed us doing this for `val-json` and not `concepts` and only when building `utils`. For the exact mapping between the publish payload and the index, see https://doc.rust-lang.org/cargo/reference/registry-index.html#json-schema, particularly the note about differences.
1 parent 44d0bb0 commit 550d6d7

File tree

1 file changed

+9
-2
lines changed
  • src/cargo/ops/cargo_package

1 file changed

+9
-2
lines changed

src/cargo/ops/cargo_package/mod.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,15 @@ impl<'a> TmpRegistry<'a> {
10331033
.deps
10341034
.into_iter()
10351035
.map(|dep| {
1036-
let name = dep.name.into();
1037-
let package = None;
1036+
let name = dep
1037+
.explicit_name_in_toml
1038+
.clone()
1039+
.unwrap_or_else(|| dep.name.clone())
1040+
.into();
1041+
let package = dep
1042+
.explicit_name_in_toml
1043+
.as_ref()
1044+
.map(|_| dep.name.clone().into());
10381045
RegistryDependency {
10391046
name: name,
10401047
req: dep.version_req.into(),

0 commit comments

Comments
 (0)