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

Revert "Upgrading yaml-rust to 0.4.2" #1439

Merged
merged 1 commit into from
Mar 27, 2019
Merged

Conversation

spacekookie
Copy link
Contributor

@spacekookie spacekookie commented Mar 27, 2019

Reverts #1415

Reasoning

I merged this PR yesterday, not fully aware of how the public API would be changed.
Committing to this change would require us to release a clap 3.0 for it which seems very unreasonable.

After merging the idea was to re-work the function signatures to preserve the clap 2.0 API while bumping to a new yaml version. This doesn't seem to be possible though because arg_yaml.as_hash() now hands out ownership of a tree, instead of just borrowing it.

The only reasonable choice at this time is to revert this PR.

Alternatives

This is not to say that clap should depend on code that has known security vulnerabilities, small as they might be.
Because of this I feel it would be more appropriate to try to fix the recursion issue on the 0.3 branch of yaml_rust instead of bumping to a breaking change.

Apologies for the carfuffle!

cc/ @gedigi

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.

1 participant