Commit Graph
19162 Commits
Author SHA1 Message Date
renovate[bot]andDaniel Hofstetter 6130076e07 chore(deps): update rust crate divan to v4.5.0 2026-04-17 14:34:16 +02:00
ceb09c7014 ls: allow crate users to call ls without having to print everything to stdout (#9851)
* refactor uu_ls so that crate users can call the command without having
the internal print stdout output

* redo changes

* clippy

* help cspell understand dired

* rebase

* try and optimize for memory and speed performance.

update output handling to add streaming mode.

* work on ci issues, optimize uid and gid cache handling, improve dired output calculations

* test fx: change read_dir parameter to mutable reference in collect_directory_entries and enter_directory functions

* update documentation

* more perf tweaks

* fmt

* tweak perf

* Add back (and shorten) comment for 31_556_952

* Update src/uu/ls/src/ls.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update src/uu/ls/src/ls.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2026-04-17 14:26:23 +02:00
Sylvestre Ledru 3194190535 tests: timeout: increase delay on macOS for forward_sigint_to_child 2026-04-17 13:37:41 +02:00
oech3andDaniel Hofstetter 5daf0a527c panic.rs: remove collapsible_if 2026-04-17 10:14:01 +02:00
mattsuandGitHub 4c32ebc58b fix(uucore): use is_dir() instead of exists() for locale path resolution (#11851)
In release builds, resolve_locales_dir_from_exe_dir() used .exists()
to check for locale directories, which matches regular files (e.g.
binaries) too. When an individual utility binary like `target/release/wc`
exists alongside the multicall `coreutils` binary, the function
incorrectly treats it as a locale directory.

This causes setup_localization() to call init_localization() with a
wrong path, leading to a FluentBundle that may lack utility-specific
messages. The translate!() macro then returns the raw Fluent key
instead of the resolved message.

Observed in Debian builds where coreutils 0.8.0 is installed on the
host during the build, causing test_files0_stops_after_stdout_write_error
to fail because "wc-error-failed-to-print-result" is emitted verbatim
instead of "failed to print result for /dev/null".

Fix: use .is_dir() so only actual directories are accepted as locale
paths, allowing the embedded locale fallback to work correctly.
2026-04-17 09:53:37 +02:00
oech3andDaniel Hofstetter 6995eb7ed3 locale.rs: fix a cfg with collapsible_if 2026-04-17 08:58:09 +02:00
xtqqczzeandDaniel Hofstetter 5120da04e0 clippy: fix collapsible_match lint
https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_match
2026-04-17 07:24:13 +02:00
xtqqczzeandDaniel Hofstetter 56cf4f98e5 clippy: fix useless_conversion lint
https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
2026-04-17 07:24:13 +02:00
xtqqczzeandDaniel Hofstetter 42e668545f clippy: fix unnecessary_cast lint
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
2026-04-17 07:24:13 +02:00
xtqqczzeandDaniel Hofstetter e88a3063a6 clippy: fix unnecessary_trailing_comma lint
https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_trailing_comma
2026-04-17 07:24:13 +02:00
xtqqczzeandDaniel Hofstetter 0626a4d103 clippy: fix map_unwrap_or lint
https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
2026-04-17 07:24:13 +02:00
xtqqczzeandDaniel Hofstetter 5b54e084bb chore: remove unused entries from spelling wordlist 2026-04-16 14:06:35 +02:00
xtqqczzeandDaniel Hofstetter 4e68e67416 Remove authors from Cargo metadata (per RFC 3052) 2026-04-16 09:55:50 +02:00
xtqqczzeandDaniel Hofstetter bec5c25387 chore: run cargo shear 2026-04-16 09:12:10 +02:00
renovate[bot]andDaniel Hofstetter b7e967cc49 chore(deps): update rust crate clap to v4.6.1 2026-04-16 07:42:08 +02:00
Daniel Hofstetter 2be465a572 Revert "fix: replace apt with apt-get in scripts"
This reverts commit 6f939edb72.
2026-04-16 07:16:50 +02:00
oech3andDaniel Hofstetter 9adb18cddf wc drop outdated info from BENCHMARKING.md 2026-04-15 17:00:17 +02:00
xtqqczzeandDaniel Hofstetter dd16ed83d6 gitignore: remove .vscode directory from ignored files 2026-04-15 16:43:28 +02:00
oech3andDaniel Hofstetter 02104f3b5c tee: remove unused returned usize 2026-04-15 16:21:55 +02:00
Eyüp Can AkmanandDaniel Hofstetter 2d5e77deb2 expr: avoid panic on regex retry-limit
Treat onig retry-limit-in-match errors as no match. GNU expr returns exit 1 for the same input.

Fixes #11612
2026-04-15 16:11:18 +02:00
Sylvestre LedruandDaniel Hofstetter a3ac3badb8 tests(env): increase signal delivery delay on macOS to fix flaky CI
The test_env_arg_ignore_signal_valid_signals test was failing on macOS
CI because 100ms was not always enough for the process to terminate
after receiving a fatal signal. Increase the delay to 500ms on macOS
only, keeping 100ms on other platforms.

Fixes flaky failure seen in: https://github.com/uutils/coreutils/actions/runs/24442074142/job/71409227191
2026-04-15 15:11:44 +02:00
Sylvestre LedruandDaniel Hofstetter 50f8d0bcc1 touch: add regression test for pre-epoch date on 32-bit 2026-04-15 10:55:34 +02:00
Sylvestre Ledru 717140a13c ci: group openbsd log sections for easier failure triage 2026-04-15 09:37:30 +02:00
Daniel HofstetterandSylvestre Ledru 79f5e03823 mv: merge two "unix" blocks 2026-04-15 09:32:05 +02:00
oech3andDaniel Hofstetter b2619df6e0 unexpand: remove Box dyn 2026-04-15 09:31:20 +02:00