-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
cksum, hashsum: Create a package to unify logic between cksum and standalone *sum binaries #10082
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
Conversation
|
If we're proceeding with this, we'd better wait before merging all PRs related to #9992, so the refactor it's going to require isn't even bigger |
|
My primary concern is not to reduce the size of the PR but to limit the complexity of the refactor, since I'll have to manually backport all the changes you did in the past 2 weeks. #10031 can definitely wait for the split to have happened to reintroduce blake3 and shake in cksum. The others, I'm not sure, maybe it's actually easier to remove all GNU error-handling compatibility code once and for all and I'll backport them as well, but that should be OK (ngl, it hurts a bit since I spent a good amount of time doing it not so long ago 🥹 ) |
|
I also want to drop
Sorry... |
Not really important if we're taking down hashsum in the end 🤔 |
|
Yes. But we should restrict usage of it until we discard it. |
c7bd04a to
8ea0463
Compare
|
GNU testsuite comparison: |
CodSpeed Performance ReportMerging this PR will improve performance by 6.05%Comparing Summary
Performance Changes
Footnotes
|
8ea0463 to
5715ff3
Compare
|
GNU testsuite comparison: |
1 similar comment
|
GNU testsuite comparison: |
5715ff3 to
5dde08a
Compare
|
I'm still trying to adapt clap argument validation, and I have a small issue with ftl files loading, but the biggest part of the work is done. To be honest, the more I work with it, the less I find added value in doing all the argument validation with clap, firstly because it does not produce understandable error messages, and also because it just CAN'T handle some behaviors correctly, the --text/--binary/--tag/--untagged hell being the best of examples. For example, in the test I know it is frustrating that |
|
GNU testsuite comparison: |
|
Yes. clap is not desined to provide a reason for error and bit buggy. |
5dde08a to
81d54bd
Compare
81d54bd to
14cf09d
Compare
This is done ! Now for the not-clap argument validation, I can come up with 3 ideas:
cc @oech3 |
|
GNU testsuite comparison: |
|
Would you wait a bit? I'm still trying to ctrl most things under I think everything working at my fork (waiting CI run...) |
|
superseded by #10142 |
@oech3 Can you take a look at this and let me know what you think ?
It will need some refactoring, because I started working on these before Christmas and it lacks your recent changes (namely #10057, #10055, #9999, #9998, #9996, and possibly others I'm not aware of). Additionally, I still need to handle other binaries.