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

Implement support for now stable rename_dependency feature. Fixes #133. #161

Merged
merged 1 commit into from
Feb 2, 2019
Merged

Implement support for now stable rename_dependency feature. Fixes #133. #161

merged 1 commit into from
Feb 2, 2019

Conversation

leoschwarz
Copy link
Contributor

This is a minor patch, but with a project of mine I still experience an error (version conflict) so I'm not certain if it really fixes the issue yet. I'll have to investigate that further.

let name = match t.get("package") {
Some(&Value::String(ref s)) => s,
// TODO: Probably this should emit an error?
Some(_) => &dep_key,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I understand "package" for a dependency if present can only be a string indicating the name of the real crates.io package. Right now a "package" value which is not a string is silently ignored, but maybe I should turn that into an error too?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Cargo rejects non-strings here, so it'd be OK to reject them too.

@alexheretic
Copy link

Works for me thanks! Fixes #133

@kornelski kornelski merged commit 796257c into kbknapp:master Feb 2, 2019
@kornelski
Copy link
Collaborator

Thanks!

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.

3 participants