Merge pull request #1 from paritytech/td-fix

Fix build.
pull/9/head
Denis S. Soldatov aka General-Beck 5 years ago committed by GitHub
commit b5e18db60c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,17 +127,17 @@ fn main() {
info!("Project dir: {:?}", project_dir);
let mut manifest_path = project_dir.clone();
manifest_path.push("Cargo.toml");
let project_name = project_dir;
// .packages
// .iter()
// .find(|p| p.manifest_path == manifest_path)
// .map_or_else(
// || {
// info!("No metadata found. Use project dir name for remote");
// |p| p.name == project_dir;
// },
// |p| &p.name,
// );
let project_name = project_metadata
.packages
.iter()
.find(|p| p.manifest_path == manifest_path)
.map_or_else(
|| {
error!("No metadata found. Use --manifest_path for execute");
exit(-2);
},
|p| &p.name,
);
info!("Project name: {:?}", project_name);
let configs = vec![
config_from_file(&project_dir.join(".cargo-remote.toml")),

Loading…
Cancel
Save