Skip to content

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.

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.

@github-actions
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
@github-actions
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