-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Upgrade clap to v4 #1443
Upgrade clap to v4 #1443
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1443 +/- ##
==========================================
- Coverage 68.93% 68.79% -0.14%
==========================================
Files 120 120
Lines 13055 13082 +27
==========================================
+ Hits 8999 9000 +1
- Misses 4056 4082 +26 |
Hey @Overflow0xFFFF Thanks a lot for PR. Sorry for delay in checking. Also please sign your PR, so DCO check can pass. |
Signed-off-by: Joshua Ford <joshua.ford@protonmail.com>
Signed-off-by: Joshua Ford <joshua.ford@protonmail.com>
Thank you for the feedback, @YJDoc2! I'm seeing odd test failures. The one that appears most often is
Since these same tests seem to run fine in the Ubuntu-based GitHub Actions workflow, I think I have to conclude that it might be my development environment running on Fedora 36. I noticed that the Vagrantfile currently uses a Fedora 33 image, which is no longer available. Might be a good candidate for another contribution? As for refactoring the CLI, I was very careful not to make any unnecessary changes. The only refactoring I needed to do was to change out some deprecated macros for their replacements. The only place I'm uncertain about is in |
Thanks for your PR. I think this PR is going to be fixed by #1406 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot 🙏
Description
The major update of clap from v3 to v4 comes with code-breaking changes.
See #1236.
Proposed changes
Refactor youki's CLI just enough to bring in clap v4 and allow dependabot to manage the dependency once more.
In order to upgrade clap, I had followed the migration guide:
https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#400---2022-09-28
This upgrade does change the
--help
output a little bit. I assume this is the full list of changes, but I could be mistaken:clap-rs/clap#4132
As part of my testing, I ran
make test-all
and followed the user guide to build and run a container. Some tests are failing locally for me, but these same tests are failing for me on the main branch. I haven't yet determined if that is due to my local development environment (Fedora 36) or not.