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

Pin to clap 3.1 and modernize some aspects of clap usage. #1273

Merged
merged 1 commit into from Jun 14, 2022

Conversation

mhammond
Copy link
Member

@mhammond mhammond commented Jun 14, 2022

Fixes #1272, [edit to remove references to bumping the clap version]

@mhammond mhammond requested a review from badboy June 14, 2022 06:32
@mhammond mhammond requested a review from a team as a code owner June 14, 2022 06:32
@jplatte
Copy link
Collaborator

jplatte commented Jun 14, 2022

For other projects I've just set the version specification to ~3.1, which means cargo won't select 3.2 or above. I don't think there's much to gain from value_parser right now.

There's lots of discussion about these deprecation warnings at clap-rs/clap#3822.

@mhammond
Copy link
Member Author

Thanks for that and yeah, I agree that's probably the best course of action. I might try and keep the non-breaking changes in my PR though

@mhammond mhammond changed the title Update to clap 3.2 Pin to clap 3.1 and modernize some aspects of clap usage. Jun 14, 2022
@mhammond mhammond enabled auto-merge (squash) June 14, 2022 08:04
Copy link
Member

@badboy badboy left a comment

Choose a reason for hiding this comment

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

👍
especially for staying on 3.1
Going to 3.2 will most likely cause pain getting it into m-c because of other things there depending on clap and thus also requiring the update. I'm not keen on doing that anytime soon really (I only just last week did land a 3.1 update to some other part)

@mhammond mhammond merged commit bb2039f into mozilla:main Jun 14, 2022
@mhammond mhammond deleted the clap-3.2 branch June 14, 2022 08:30
@@ -19,7 +19,7 @@ anyhow = "1"
askama = { version = "0.11", default-features = false, features = ["config"] }
cargo_metadata = "0.14"
camino = "1.0.8"
clap = { version = "3.1", features = ["cargo", "std", "derive"] }
clap = { version = "~3.1", features = ["cargo", "std", "derive"] }
Copy link

Choose a reason for hiding this comment

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

This can now be reverted as deprecations are now off by default, see clap-rs/clap#3830 for details. When you do start working through the deprecations as part of upgrading to 4.0, we've also improved the warnings for derive users. See clap-rs/clap#3832 for examples.

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.

CI fails with clap=3.2
4 participants