Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI] Only use referenced dependencies in the linkage table #20509

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Fixes
  • Loading branch information
stefan-mysten committed Jan 17, 2025
commit 4de4e55ad6f86fc8e552b9469db1d6d8c2970ccc
2 changes: 2 additions & 0 deletions crates/sui-move-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ pub fn build_from_resolution_graph(
(address != AccountAddress::ZERO).then_some(address)
})
.collect();
println!("Orig deps: {:?}", dependency_ids);
println!("All compiled units ids: {:?}", deps);
dependency_ids.published.retain(|_, id| deps.contains(id));

Ok(CompiledPackage {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ impl Package {
continue;
}
// There is no lock file, but perhaps there is a `published-at` in the manifest.
// but what if published-at is the upgraded package id?
else if let Some(published_at) = self
.source_package
.package
Expand Down