Skip to content

Commit

Permalink
ensure package dependencies are listed in meta.json in sorted order
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Mart committed Sep 24, 2024
1 parent edad8cc commit 06496e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/cargo-psibase/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,14 @@ pub async fn build_package(
}
};

let meta = Meta {
let mut meta = Meta {
name: package_name.to_string(),
version: package_version.to_string(),
description: package_description.unwrap_or_else(|| package_name.to_string()),
depends,
accounts,
};
meta.depends.sort_by(|a, b| a.name.cmp(&b.name));

let mut service_wasms = Vec::new();
for (service, info, id) in services {
Expand Down

0 comments on commit 06496e4

Please sign in to comment.