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

NOISSUE - Add futher testing #192

Merged
merged 4 commits into from
Feb 28, 2021

Conversation

jmcconnell26
Copy link
Contributor

No description provided.

@@ -21,7 +21,6 @@ cargo_metadata = "0.12.3"
cargo-platform = "0.1.1"
colored = "2.0.0"
console = "0.11.3"
env_logger = "0.8.2"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took this out because it doesn't look to be used, can add back in if needed

Comment on lines -206 to -238
if visited.insert(dep_index) {
indices.push(dep_index);
}

let dependency_package_id_option = graph.graph[dep_index]
.to_cargo_geiger_package_id(
cargo_metadata_parameters.metadata,
);

let dependency_kind_option =
edge.weight().to_cargo_geiger_dependency_kind();

match (dependency_package_id_option, dependency_kind_option) {
(Some(dependency_package_id), Some(dependency_kind)) => {
package_info.add_dependency(
dependency_package_id,
dependency_kind,
);
}
(Some(dependency_package_id), None) => {
eprintln!(
"Failed to add dependency for: {} {:?}",
dependency_package_id.name,
dependency_package_id.version
)
}
_ => {
eprintln!(
"Error converting: {} to Cargo Geiger Package Id",
graph.graph[dep_index]
)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@anderejd
Copy link
Contributor

Looks good to me!

@anderejd anderejd merged commit fcfa610 into geiger-rs:master Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants