-
Notifications
You must be signed in to change notification settings - Fork 2
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
Migrate to clap 4.x (WIP) #123
Conversation
6fed76d
to
177b860
Compare
Thanks a lot for the PR @schneiderfelipe! It looks good to me on first glance but I will take a closer look later when I have some more time, especially on the failing checks. I will probably have to update the minimum supported Rust version to allow for clap 4. As for testing CLI validation errors: Did clap 4 improve anything in this regard or would you consider these tests superfluous no matter which clap version? |
Some of the checks are failing due to
I think the MSRV for clap 4.3 (what this PR is asking for) is 1.64.0. For comparison, clap 4.0 seems to ask for 1.60.0, so that's the interval we could choose from?
That's because some of those validations used to happen here, but since they are being proposed to happen on clap side (e.g. see here), I suggest these tests could be removed. |
I suggest that we first update the MSRV to 1.64.0 and make sure all the checks are passing (i.e. by addressing the clippy warnings) in a separate PR. Then we can rebase this PR on the new master after the other one has been merged. What do you think? If you want to you could do that using the changes that you already have in place regarding the clippy warnings.
I see, thanks for the clarification. |
Good call, I can do that just fine. In the meanwhile, can I ask you to rerun the CI workflow on the master branch, so that we can have a baseline? |
I had to update the CI to allow for manually triggering it in the future but now the checks have in any case run on master. 🙂 Looks like they fail at the same places as when running on this PR except for the 1.56.0 job - which is what was to be expected. |
Hi @schneiderfelipe, are you still interested in doing the preparations that we discussed above (updating the MSRV and taking care of the clippy warnings)? Otherwise I would like to do them myself so that I can merge this PR and allow for any further development. |
Hi Anett, my time got short lately. Feel free to do it if you want. I'll
probably catch pace at a later time! Cheers!
Em ter, 7 de mai de 2024 06:53, Anett Seeker ***@***.***>
escreveu:
… Hi @schneiderfelipe <https://github.com/schneiderfelipe>, are you still
interested in doing the preparations that we discussed above (updating the
MSRV and taking care of the clippy warnings)? Otherwise I would like to do
them myself so that I can merge this PR and allow for any further
development.
—
Reply to this email directly, view it on GitHub
<#123 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAJCBP33GTEBHIFD4LJ2GLZBCQB5AVCNFSM6AAAAABFPSZTEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJXHEYDMNBSGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@schneiderfelipe Thanks again for the PR and thanks for bringing back some life to this project. 🙂 |
This PR migrates to clap 4.3. This in particular requires/benefits from some changes to/on how some errors work, including depending on thiserror; I believe those are good changes overall.
I plan on doing the following in this PR:
Self
and offormat!
only)they currently reflect the state of the PR though, so you can see how CLI error messages differthose changes have been isolated in the last commitPlease let me know what you think @noeddl, in particular on the last point.