Sylvestre Ledru
ee2772925a
cksum: --tag & --untagged - the order of usage matters. manage it
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
9e080a3684
cksum: handle a corner case
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
234f2f9508
cksum: handle an error like GNU
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
10d8fd6f98
cksum: add binary and prepare the rest
2024-05-07 20:24:25 +02:00
Sylvestre Ledru
dc5342d115
hashsum: allow multiple usage of -l and take the last one
...
tested by gnu/tests/cksum/b2sum.sh
2024-05-07 20:24:25 +02:00
Daniel Hofstetter
b64183b0de
fmt: use "unwrap()" instead of "?" in tests
2024-05-07 20:20:59 +02:00
Sylvestre Ledru
263f4a0377
Merge pull request #6373 from cakebaker/deny_toml_remove_hashbrown
...
deny.toml: remove hashbrown, update comment
2024-05-07 09:56:19 +02:00
Daniel Hofstetter
fde887c6b3
Merge pull request #6372 from uutils/renovate/proc-macro2-1.x-lockfile
...
fix(deps): update rust crate proc-macro2 to v1.0.82
2024-05-07 08:27:48 +02:00
Daniel Hofstetter
0e9ce5044b
Merge pull request #6362 from BenWiederhake/dev-fmt-error-priority
...
fmt: fix error priority, make goal-errors more helpful
2024-05-07 08:11:17 +02:00
Daniel Hofstetter
67922d60d5
deny.toml: remove hashbrown, update comment
2024-05-07 07:57:41 +02:00
Daniel Hofstetter
25ba369577
Merge pull request #6371 from uutils/renovate/zip-1.x-lockfile
...
chore(deps): update rust crate zip to v1.2.1
2024-05-07 07:49:59 +02:00
Daniel Hofstetter
de995e39a7
Merge pull request #6370 from uutils/renovate/thiserror-1.x-lockfile
...
chore(deps): update rust crate thiserror to v1.0.60
2024-05-07 07:48:15 +02:00
Daniel Hofstetter
3249a954fe
Merge pull request #6369 from uutils/renovate/num-bigint-0.x-lockfile
...
chore(deps): update rust crate num-bigint to v0.4.5
2024-05-07 07:46:37 +02:00
renovate[bot]
1ea628a69e
fix(deps): update rust crate proc-macro2 to v1.0.82
2024-05-07 05:45:55 +00:00
Daniel Hofstetter
9e82bf518a
Merge pull request #6367 from uutils/renovate/num-prime-0.x-lockfile
...
chore(deps): update rust crate num-prime to v0.4.4
2024-05-07 07:43:51 +02:00
renovate[bot]
71b2bb7f1d
chore(deps): update rust crate zip to v1.2.1
2024-05-07 04:34:10 +00:00
renovate[bot]
a9c6a71198
chore(deps): update rust crate thiserror to v1.0.60
2024-05-07 04:34:04 +00:00
renovate[bot]
3ce1df7b21
chore(deps): update rust crate num-bigint to v0.4.5
2024-05-07 00:22:17 +00:00
Ben Wiederhake
ea18cfd3d8
fmt: fix error priority, make goal-errors more helpful
2024-05-06 19:36:39 +02:00
renovate[bot]
c8c848dda6
chore(deps): update rust crate num-prime to v0.4.4
2024-05-06 17:33:58 +00:00
renovate[bot]
417e92009b
chore(deps): update rust crate zip to v1.2.0
2024-05-06 19:32:26 +02:00
Sylvestre Ledru
421f3a9371
Merge pull request #6349 from jadijadi/disabling-xattrs-openbsd
...
Disabling xattrs tests on OpenBSD
2024-05-05 21:52:16 +02:00
ahmadabd
a3d05e5945
fmt: value of minlength should not be negative
...
closes #6354
2024-05-05 21:08:38 +02:00
Daniel Hofstetter
f9b4fada14
Merge pull request #6355 from BenWiederhake/dev-fmt-repeated-args
...
fmt: accept repeated arguments
2024-05-05 17:44:14 +02:00
Ben Wiederhake
a13949b4ba
fmt: add basic tests for split-only, prefix, and skip-prefix args
2024-05-05 17:03:28 +02:00
Ben Wiederhake
e76f92c212
fmt: accept repeated arguments
2024-05-05 16:13:46 +02:00
Daniel Hofstetter
c2d55b4f84
Merge pull request #6356 from lcheylus/clippy-openbsd
...
Disable clippy::assigning_clones on OpenBSD
2024-05-05 13:06:33 +02:00
Laurent Cheylus
14258b12ad
tail: disable clippy::assigning_clones on OpenBSD
...
- Avoid error on OpenBSD stable/7.5 with clippy (lint)
- assigning_clones added in Rust 1.78.0 (1.76 used on OpenBSD 7.5)
https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-05 11:36:35 +02:00
Laurent Cheylus
7a556a6e82
cp: disable clippy::assigning_clones on OpenBSD
...
- Avoid error on OpenBSD stable/7.5 with clippy (lint)
- assigning_clones added in Rust 1.78.0 (1.76 used on OpenBSD 7.5)
https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-05 11:36:35 +02:00
Laurent Cheylus
225a1052a7
df: disable clippy::assigning_clones on OpenBSD
...
- Avoid error on OpenBSD stable/7.5 with clippy (lint)
- assigning_clones added in Rust 1.78.0 (1.76 used on OpenBSD 7.5)
https://rust-lang.github.io/rust-clippy/master/index.html#/assigning_clones
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-05 11:36:35 +02:00
Daniel Hofstetter
945d20a9db
Merge pull request #6347 from uutils/renovate/zip-1.x
...
chore(deps): update rust crate zip to 1.1.4
2024-05-05 09:33:11 +02:00
Jadi
19d42c0339
Disabling xattrs function and tests on OpenBSD
...
The test_compare_xattrs test fails on OpenBSD because OpenBSD does
not support xattrs. Disabling this function and its test for
target_os = openbsd resolves the issue.
Fixes #6348
2024-05-05 09:08:35 +03:30
renovate[bot]
a5ac917c89
chore(deps): update rust crate zip to 1.1.4
2024-05-04 17:56:51 +00:00
Jalil David Salamé Messina
ff1a03c284
tr: don't truncate when not translating
...
An additional issue was found while reviewing #6340 , check [this thread][1]. A summary is:
- `tr` ignores the `-t`/`--truncate-set1` flag when not translating
- Not translating is defined as `-d` was passed, or one set was passed.
[1]: https://github.com/uutils/coreutils/pull/6340#discussion_r1590007053
2024-05-04 19:55:49 +02:00
Jalil David Salamé Messina
3c47f27698
tr: calculate complement set early
...
Fixes #6163 and adds a test to verify that a regression is not caused.
Instead of inverting the conditions to check (e.g. delete characters **not** present in set1) invert
set1 when passed the complement flag (`-c`, `-C`, `--complement`). This is done by calculating set1
then "inverting" it by subtracting from the "full" (universe) set (0..=u8::MAX).
This fixes issue 6163 because it was caused by a combination of the `-c` and `-t` flag. `-c` is the
abovementioned complement flag and `-t`/`--truncate-set1` truncates set1 to the length of set2. What
happened in issue 6163 is that `set1={b'Y'}` and `set2={b'Z'}`, when truncated set1 stays the same
and we proceed. The problem is GNU utils does not consider set1 to be `{b'Y'}`, but the complement
of `{b'Y'}`, that is `U \ {b'Y'}={0, 1, ..., b'X', b'Z', ...}`, thus it is truncated to `{0}`.
We can verify this by doing: `printf '\0' | tr -c -t Y Z`, which prints `Z` to stdout as expected.
Additionally, by calculating the complement of set1 we no longer need to consider the complement
flag when doing the translate operation, this allows us to delete a lot of code.
2024-05-04 19:55:49 +02:00
Laurent Cheylus
3b96ff1d10
show-utils.sh: fix jq query to get coreutils deps
...
In jq query, the correct regex to select .id is ".*coreutils[ |@]\\d+\\.\\d+\\.\\d+"
- with cargo v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"
- with cargo v1.77, id = "path+file://<coreutils local directory>#coreutils@0.0.26"
Fix uutils/coreutils#6242
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-05-04 18:20:03 +02:00
Daniel Hofstetter
99d234af87
Bump fts-sys and selinux-sys
...
fts-sys: 0.2.4 -> 0.2.9
selinux-sys: 0.6.2 -> 0.6.9
2024-05-04 12:58:39 +02:00
Daniel Hofstetter
8ad4d783ea
Merge pull request #6338 from uutils/renovate/num-traits-0.x
...
chore(deps): update rust crate num-traits to 0.2.19
2024-05-04 07:11:03 +02:00
Daniel Hofstetter
c730e0da87
Merge pull request #6337 from uutils/renovate/self_cell-1.x
...
chore(deps): update rust crate self_cell to 1.0.4
2024-05-04 07:06:39 +02:00
renovate[bot]
bd7d213204
chore(deps): update rust crate num-traits to 0.2.19
2024-05-03 23:02:03 +00:00
renovate[bot]
c00369ba5e
chore(deps): update rust crate self_cell to 1.0.4
2024-05-03 16:54:38 +00:00
Daniel Hofstetter
451be5343f
Merge pull request #6336 from uutils/renovate/similar-2.x
...
fix(deps): update rust crate similar to 2.5.0
2024-05-03 09:12:21 +02:00
Daniel Hofstetter
c1942daeb1
Merge pull request #6328 from uutils/renovate/proc-macro2-1.x
...
fix(deps): update rust crate proc-macro2 to 1.0.81
2024-05-03 08:50:52 +02:00
Daniel Hofstetter
eb1616be9d
Merge pull request #6335 from uutils/renovate/wild-2.x
...
fix(deps): update rust crate wild to 2.2.1
2024-05-03 08:28:04 +02:00
renovate[bot]
13e482b9ac
fix(deps): update rust crate similar to 2.5.0
2024-05-03 06:14:30 +00:00
Daniel Hofstetter
a3c40dec55
Merge pull request #6334 from uutils/renovate/rand-0.x
...
fix(deps): update rust crate rand to 0.8.5
2024-05-03 08:11:54 +02:00
renovate[bot]
e5c9796c4b
fix(deps): update rust crate proc-macro2 to 1.0.81
2024-05-03 05:41:47 +00:00
renovate[bot]
c075d78efd
fix(deps): update rust crate wild to 2.2.1
2024-05-03 05:40:58 +00:00
Daniel Hofstetter
7ba7501844
Merge pull request #6329 from uutils/renovate/quote-1.x
...
fix(deps): update rust crate quote to 1.0.36
2024-05-03 07:39:55 +02:00
renovate[bot]
3eeda1e5e9
fix(deps): update rust crate rand to 0.8.5
2024-05-03 05:02:43 +00:00