Skip to content

fix: Handle write failures when printing --help/--version - #656

Merged
sylvestre merged 7 commits into
uutils:mainfrom
Xylphy:fix/help-version-write-errors-622
Jun 7, 2026
Merged

sylvestre merged 7 commits into
uutils:mainfrom
Xylphy:fix/help-version-write-errors-622

Conversation

@Xylphy

@Xylphy Xylphy commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Fixes #622

Summary

Make print_help and print_version write via the Dependencies output and return Result; propagate errors from do_find so find_main exits with a non-zero code instead of panicking.

@codecov

codecov Bot commented Apr 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.09%. Comparing base (2044d1e) to head (a14d42f).

Files with missing lines Patch % Lines
src/find/mod.rs 50.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #656      +/-   ##
==========================================
+ Coverage   92.04%   92.09%   +0.05%     
==========================================
  Files          35       35              
  Lines        7099     7101       +2     
  Branches      370      370              
==========================================
+ Hits         6534     6540       +6     
+ Misses        421      418       -3     
+ Partials      144      143       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sylvestre sylvestre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sorry, needs to be rebased

@Xylphy
Xylphy force-pushed the fix/help-version-write-errors-622 branch from 6c05ce0 to a26b551 Compare June 6, 2026 08:48
@Xylphy
Xylphy requested a review from sylvestre June 6, 2026 08:50
@sylvestre

Copy link
Copy Markdown
Contributor

please run cargo fmt

@codspeed

codspeed Bot commented Jun 6, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 20 untouched benchmarks


Comparing Xylphy:fix/help-version-write-errors-622 (a14d42f) with main (2044d1e)

Open in CodSpeed

@Xylphy
Xylphy marked this pull request as draft June 6, 2026 09:13
@Xylphy
Xylphy marked this pull request as ready for review June 6, 2026 09:22
@Xylphy

Xylphy commented Jun 6, 2026

Copy link
Copy Markdown
Contributor Author

@sylvestre Done 🙂

Comment thread src/find/mod.rs Resolved
@Xylphy
Xylphy requested a review from sylvestre June 6, 2026 13:59
@sylvestre
sylvestre merged commit fb9f8df into uutils:main Jun 7, 2026
21 of 22 checks passed
@Xylphy
Xylphy deleted the fix/help-version-write-errors-622 branch June 7, 2026 17:34
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.

find/xargs --help/--version >/dev/full panics

2 participants