Skip to content

Bump clap to 4.5.23 & fix failing seq tests #6955

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

Merged
merged 4 commits into from
Dec 15, 2024
Merged

Conversation

cakebaker
Copy link
Contributor

@cakebaker cakebaker commented Dec 13, 2024

This PR bumps clap from 4.4.2 to 4.5.23 and fixes some failing tests in seq due to breaking changes in clap's handling of negative numbers. It also adapts two error messages of GNU tests to adapt to clap changes.

@@ -47,9 +48,33 @@ struct SeqOptions<'a> {
/// The elements are (first, increment, last).
type RangeFloat = (ExtendedBigDecimal, ExtendedBigDecimal, ExtendedBigDecimal);

// Turn short args with attached value, for example "-s,", into two args "-s" and "," to make
// them work with clap.
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add a link to the discussion ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, good point, though I will add it to the comment on lines 196/197 where it's a better fit.

Copy link

GNU testsuite comparison:

GNU test failed: tests/du/threshold. tests/du/threshold is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/factor. tests/factor/factor is passing on 'main'. Maybe you have to rebase?

@cakebaker cakebaker marked this pull request as draft December 13, 2024 09:11
Copy link

GNU testsuite comparison:

GNU test failed: tests/du/threshold. tests/du/threshold is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/factor. tests/factor/factor is passing on 'main'. Maybe you have to rebase?

@sylvestre
Copy link
Contributor

GNU testsuite comparison:

GNU test failed: tests/du/threshold. tests/du/threshold is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/factor/factor. tests/factor/factor is passing on 'main'. Maybe you have to rebase?

I guess they are regressions, right? Thanks

allow_negative_numbers because clap removed support for "exotic" negative
numbers like -.1
@cakebaker cakebaker marked this pull request as ready for review December 15, 2024 16:04
@cakebaker cakebaker requested a review from sylvestre December 15, 2024 16:04
@sylvestre sylvestre merged commit aea13ed into uutils:main Dec 15, 2024
64 checks passed
@sylvestre
Copy link
Contributor

well done

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.

2 participants