Skip to content

Commit

Permalink
Merge pull request #244 from kinode-dao/hf/small-tweaks
Browse files Browse the repository at this point in the history
small tweaks
  • Loading branch information
nick1udwig authored Sep 25, 2024
2 parents 16cbe20 + 25fe0c2 commit 217ef8e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/build/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,19 @@ fn find_crate_versions(

#[instrument(level = "trace", skip_all)]
fn check_process_lib_version(cargo_toml_path: &Path) -> Result<()> {
let metadata = cargo_metadata::MetadataCommand::new()
let metadata = match cargo_metadata::MetadataCommand::new()
.manifest_path(cargo_toml_path)
.exec()?;
.exec()
{
Ok(m) => m,
Err(_) => {
warn!(
"Couldn't find Cargo.toml where expected: {:?}; continuing.",
cargo_toml_path,
);
return Ok(());
}
};
let packages: HashMap<cargo_metadata::PackageId, &cargo_metadata::Package> = metadata
.packages
.iter()
Expand Down

0 comments on commit 217ef8e

Please sign in to comment.