Yuri Astrakhan
d77470be2d
fix clippy issues
2025-04-08 18:25:29 -04:00
Yuri Astrakhan
170831ed2b
chore: remove unneeded parens
...
Keeps code a bit more readable
2025-04-08 18:19:03 -04:00
Sylvestre Ledru
6ea1f5247f
Merge pull request #7703 from nyurik/lints
...
feat: minor linting
2025-04-08 17:16:42 -04:00
Sylvestre Ledru
1abe65cfdb
Merge pull request #7696 from nyurik/id-fix
...
bug: fix id printing of egid
2025-04-08 17:01:31 -04:00
Sylvestre Ledru
0a99ab86e9
Merge pull request #7698 from nyurik/assert-eq
...
chore: use `assert_eq!` and `assert_ne!` instead of `assert!`
2025-04-08 17:00:58 -04:00
Yuri Astrakhan
249ef537fe
feat: minor linting
2025-04-08 16:34:21 -04:00
renovate[bot]
8c055b4b20
chore(deps): update rust crate bstr to v1.12.0
2025-04-08 18:54:05 +00:00
Terts Diepraam
8040305715
Merge pull request #7622 from blyxxyz/flush-bufwriters
...
Flush `BufWriter`s, clean up error reporting
2025-04-08 20:52:51 +02:00
Yuri Astrakhan
a27880e8a3
chore: use assert_eq!
and assert_ne!
instead of assert!
...
Makes intent clearer, and if something fails, prints the values that caused the failure as part of the panic message.
2025-04-08 13:25:41 -04:00
Dan Hipschman
81911f9f6a
numfmt: add --zero-terminated option
2025-04-08 10:05:26 -07:00
Yuri Astrakhan
a207f997a3
bug: fix id printing of egid
...
Spotted while doing format arg inlining, and confirmed in https://github.com/uutils/coreutils/pull/7689#issuecomment-2786827777
2025-04-08 12:19:44 -04:00
Daniel Hofstetter
a77e218a79
Merge pull request #7690 from nyurik/manual-inline
...
chore: manual inline formatting - tests
2025-04-08 15:27:14 +02:00
Daniel Hofstetter
c5a236d416
Merge pull request #7692 from uutils/renovate/half-2.x-lockfile
...
chore(deps): update rust crate half to v2.6.0
2025-04-08 09:34:57 +02:00
Daniel Hofstetter
7f8ad6a32c
Merge pull request #7688 from nyurik/fmt-inline
...
chore: use inline formatting
2025-04-08 09:31:17 +02:00
Daniel Hofstetter
8aaa8ff24d
Merge pull request #7691 from nyurik/commas
...
chore: cleanup trailing commas before parens
2025-04-08 08:15:54 +02:00
renovate[bot]
feb99dcf0d
chore(deps): update rust crate half to v2.6.0
2025-04-08 05:48:07 +00:00
Yuri Astrakhan
3dc771924c
chore: cleanup trailing commas before parens
...
Deleted commas in cases like `foo,)` -- mostly in macros
2025-04-08 00:33:58 -04:00
Yuri Astrakhan
982805d3cd
chore: manual inline formatting
...
Minor manual cleanup - inlined many format args. This makes the code a bit more readable, and helps spot a few inefficiencies and possible bugs. Note that `&foo` in a `format!` parameter results in a 6% extra performance cost, and does not get inlined by the compiler (yet).
2025-04-08 00:23:21 -04:00
Yuri Astrakhan
47b10539d0
chore: use inline formatting
...
Minor cleanup using clippy autofix. This makes the code a bit more readable, and helps spot a few inefficiencies and possible bugs.
```
cargo clippy --fix --workspace -- -A clippy::all -W clippy::uninlined_format_args && cargo fmt
```
2025-04-07 22:56:21 -04:00
Clifford Ressel
b7bf8c9467
chmod: Correct chmod -R on dangling symlink and tests ( #7618 )
...
* Correct chmod -R on dangling symlink and tests
* Add tests of arg-level symlink to chmod
* Add tests of all symlink flag combos on chmod dangling
* Fix no traverse on dangling symlink
* Add chmod recursive tests of default symlink method
* Add default chmod -H flag tests
* Set chmod default traversal method correctly to -H
* Fix arg symlink chmod case
* Remove extra chmod -H testing
---------
Co-authored-by: Clifford Ressel <EMAIL@gmail.com>
2025-04-07 16:18:00 +02:00
Dorian Péron
1b250fa75c
Merge pull request #7683 from uutils/renovate/codecov-codecov-action-5.x
...
chore(deps): update codecov/codecov-action action to v5
2025-04-07 14:30:13 +02:00
Sylvestre Ledru
ce0814134e
Merge pull request #7682 from uutils/renovate/mozilla-actions-sccache-action-0.x
...
chore(deps): update mozilla-actions/sccache-action action to v0.0.9
2025-04-07 12:40:51 +02:00
renovate[bot]
a40e4483fd
chore(deps): update codecov/codecov-action action to v5
2025-04-07 09:11:02 +00:00
renovate[bot]
232b083002
chore(deps): update mozilla-actions/sccache-action action to v0.0.9
2025-04-07 09:10:58 +00:00
Sylvestre Ledru
0b397c469f
Merge pull request #7401 from RenjiSann/coverage
...
Fix coverage files generation
2025-04-07 11:10:12 +02:00
Dorian Peron
c539f01cc9
coverage: update DEVELOPMENT.md
2025-04-07 10:22:48 +02:00
Dorian Peron
a026a861e0
Remove old coverage-related scripts
2025-04-07 10:19:00 +02:00
Dorian Peron
5250b893a7
test(env): fix test_gnu_e20 for coverage run
2025-04-07 10:19:00 +02:00
Dorian Peron
f552a6cb8a
test-utils: make the test harness forward LLVM_PROFILE_FILE to coreutil call
2025-04-07 10:19:00 +02:00
Dorian Peron
f5d3a2d3ba
CI: add CICD job for code coverage
2025-04-07 10:19:00 +02:00
Dorian Peron
73faa50ac3
create a script for automating code coverage
2025-04-07 10:19:00 +02:00
eduardorittner
36ef5010e3
printf: make negative values wrap around with unsigned/hex format
...
To convert from negative to unsigned with overflow, we get the two's complement
representation of the absolute (unsigned) value.
2025-04-06 18:58:56 -03:00
Daniel Hofstetter
f1f3a5d9d2
Merge pull request #7677 from shskwmt/test-cp-acl-preserve
...
test/cp: Fix "No such file or directory" error in test_acl_preserve
2025-04-06 17:41:40 +02:00
shskwmt
58bde5453d
test/cp: Fix "No such file or directory" error in test_acl_preserve
...
Fix a bug in test_acl_preserve that was causing "setfacl: a: No such file or directory"
error messages when running with `cargo test --features=cp test_acl_preserve`.
Changes:
- Use plus_as_string on path1 to generate the correct absolute path
- Move the file path generation closer to where it's used for better code organization
2025-04-06 23:50:14 +09:00
Daniel Hofstetter
181885b2d1
Merge pull request #7667 from uutils/renovate/crossterm-0.x
...
chore(deps): update rust crate crossterm to 0.29.0
2025-04-06 10:28:41 +02:00
Daniel Hofstetter
c2919efd86
Merge pull request #7672 from uutils/renovate/vmactions-freebsd-vm-1.x
...
chore(deps): update vmactions/freebsd-vm action to v1.2.0
2025-04-06 10:25:03 +02:00
renovate[bot]
67a890e939
chore(deps): update vmactions/freebsd-vm action to v1.2.0
2025-04-05 22:18:42 +00:00
Lewis Boon
36e7b28426
df: migrate OptionsError to thiserror
...
Closed #7536
2025-04-05 23:11:10 +01:00
Sylvestre Ledru
15bb29c43e
Merge pull request #7643 from karlmcdowall/tail_forwards_through_file
...
tail: Performance improvements
2025-04-05 20:46:57 +02:00
Karl McDowall
b264457c41
tail: Performace improvements
...
Improve performance of `tail` utility. Tail now uses
performance-optimized memchr APIs when searching through a
file for delimiters.
2025-04-05 12:16:49 -06:00
renovate[bot]
d5258d2800
chore(deps): update rust crate crossterm to 0.29.0
2025-04-05 18:00:15 +00:00
Sylvestre Ledru
3971bb3b0c
Merge pull request #7620 from sargas/pass-printf-test
...
printf: Consistently handle negative widths/precision
2025-04-05 10:49:54 +02:00
Sylvestre Ledru
f6cadac519
Merge pull request #7645 from karlmcdowall/cat_line_number_formatting
...
cat: Performance improvement when printing line numbers
2025-04-05 10:43:00 +02:00
Sylvestre Ledru
4a5f428618
Merge pull request #7653 from drinkcat/ci-fuzz-cargolock
...
.github/workflows: Take care of both ./Cargo.lock and fuzz/Cargo.lock
2025-04-05 10:11:12 +02:00
Nicolas Boichat
51e90ae544
fuzz/Cargo.lock: Update
...
For some reason this lockfile has not been updated since the
edition 2024/1.85.0 update.
2025-04-05 09:34:17 +02:00
Nicolas Boichat
a888a021cb
.github/workflows: Take care of both ./Cargo.lock and fuzz/Cargo.lock
2025-04-05 09:34:17 +02:00
Joseph Jon Booker
64ce76bdf1
uucore/format: add docs and tests for resolve_astrick_ methods
2025-04-05 02:02:33 -05:00
Joseph Jon Booker
6061b67601
printf: add tests for different octal lengths
2025-04-05 02:02:33 -05:00
Joseph Jon Booker
95e5396c4c
printf: Consistently handle negative widths/precision
...
Also allows character constants with " instead of ', and for
interpolated values with %b to use \0XXX notation for octal bytes
2025-04-05 02:02:31 -05:00
Daniel Hofstetter
856e92c381
Merge pull request #7655 from uutils/renovate/zip-2.x-lockfile
...
chore(deps): update rust crate zip to v2.6.1
2025-04-05 07:41:01 +02:00