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

Guard against crate id collisions #97

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Guard against crate id collisions #97

merged 1 commit into from
Jul 12, 2023

Conversation

oli-obk
Copy link
Owner

@oli-obk oli-obk commented Jul 12, 2023

@oli-obk oli-obk merged commit 9959dd2 into main Jul 12, 2023
@oli-obk oli-obk deleted the crate_id_collision branch July 12, 2023 11:30
};
if let cargo_metadata::Message::CompilerArtifact(artifact) = message {
for filename in &artifact.filenames {
import_paths.insert(filename.parent().unwrap().into());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this assert that no existing entry is overwritten?

Copy link
Owner Author

Choose a reason for hiding this comment

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

No, this doesn't matter, it is just about import paths, and these are the same for most dependencies.

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