-
Notifications
You must be signed in to change notification settings - Fork 476
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
chore(deps): update clap #1924
chore(deps): update clap #1924
Conversation
b443207
to
4b2c697
Compare
Note: current commit has a deprecation warning already, the fix is planned for the next commit where I'll resolve such warnings |
e61c060
to
efd52d5
Compare
efd52d5
to
8cdf98d
Compare
Nice, this is a great approach, because it makes each commit easy to review independently. The completion scripts are probably going to be a huge problem. The completion scripts are generated by clap, but then we patch them to add features. So if the completion scripts have changed a lot, those patchs might not apply cleaning, and would be hard to resolve. If going from clap v3 to clap v4 winds up being hard, we can also merge just the move from v2 to v3. |
The issue is not the cleaning, I fixed that easily enough, I just can't get |
Which function generates the completion script, and which version of clap_complete? Looking at the latest clap_complete, it looks like the generate function takes a writer to write to. clap_complete::generator::generate. |
Look at clap-rs/clap#5372 for details, it's not related to just's usage of it but is a wider issue |
To workaround that issue, could you generate the completion scripts in |
Found the issue, I'll fix it and continue this pr |
Okay I think I did everything I was supposed to for a clean clap upgrade (congrats to the clap changelog, it's very well made) so this is ready for review :D |
Looks good to me! Thank you for the epic PR! |
Steps:
I know there is #1865 but I think it does it too quickly to make it possible. I'm following the changelog instructions from clap: https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#migrating, which makes it simpler