Daniel Hofstetter
2e4b7c8cb7
mv: show "same file" error for "mv d/f d"
2024-12-02 10:27:10 +01:00
Sylvestre Ledru
9dec29f613
Merge pull request #6891 from cakebaker/uucore_perms_fix_todo
...
uucore/perms: use ORs instead of `match` (fix todo)
2024-12-02 10:01:10 +01:00
Daniel Hofstetter
6a7c0112cb
Merge pull request #6853 from sylvestre/comm
...
comm: generate an error if the input is a directory
2024-11-30 10:55:14 +01:00
Sylvestre Ledru
2ad3c45230
tr: generate an error if the input is a directory ( #6855 )
...
* tr: generate an error if the input is a directory
tested by tests/misc/read-errors
* tr: improve the test
* tr: take the commentinto account
2024-11-30 10:38:46 +01:00
Sylvestre Ledru
0cae322dfa
comm: generate an error if the input is a directory
...
tested by tests/misc/read-errors
2024-11-30 10:26:34 +01:00
Sylvestre Ledru
37fb0a02f8
Merge pull request #6899 from cakebaker/clippy_fix_needless_lifetimes
...
uudoc,chcon: fix `needless_lifetimes` warnings
2024-11-30 09:46:10 +01:00
Daniel Hofstetter
2e8a759f97
Merge pull request #6902 from uutils/renovate/terminal_size-0.x-lockfile
...
chore(deps): update rust crate terminal_size to v0.4.1
2024-11-30 07:15:41 +01:00
renovate[bot]
1365f6c025
chore(deps): update rust crate terminal_size to v0.4.1
2024-11-29 21:46:48 +00:00
Daniel Hofstetter
000583576e
Merge pull request #6901 from uutils/renovate/libc-0.x-lockfile
...
fix(deps): update rust crate libc to v0.2.167
2024-11-29 13:25:48 +01:00
renovate[bot]
4f7f85da47
fix(deps): update rust crate libc to v0.2.167
2024-11-29 10:45:33 +00:00
Daniel Hofstetter
cd4506f67d
Merge pull request #6900 from uutils/renovate/dawidd6-action-download-artifact-7.x
...
chore(deps): update dawidd6/action-download-artifact action to v7
2024-11-29 11:44:18 +01:00
renovate[bot]
270525a02f
chore(deps): update dawidd6/action-download-artifact action to v7
2024-11-29 10:14:38 +00:00
Daniel Hofstetter
cba96dffd8
Merge pull request #6885 from sylvestre/du-dedup
...
du: deduplicate the input
2024-11-29 11:13:59 +01:00
Daniel Hofstetter
865da0caad
uudoc,chcon: fix needless_lifetimes warnings
2024-11-29 10:47:14 +01:00
Sylvestre Ledru
95bd50e09a
du: deduplicate the input
...
Should fix:
tests/du/hard-link.sh
2024-11-29 10:26:27 +01:00
Daniel Hofstetter
79f991dd05
Merge pull request #6898 from sylvestre/fix-clipp
...
Fix new clippy warnings
2024-11-29 09:48:21 +01:00
Sylvestre Ledru
ffbc682b92
Use the other comment syntax as it is not related
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-11-29 09:19:30 +01:00
Sylvestre Ledru
8df608cf97
clippy: used underscore-prefixed item
2024-11-29 08:36:54 +01:00
Sylvestre Ledru
9d404e5ee8
clippy: it is more idiomatic to use 'Option<&T>' instead of '&Option<T>'
2024-11-29 08:36:54 +01:00
Sylvestre Ledru
c0840dd43f
clippy: unneeded 'return' statement
2024-11-29 08:36:54 +01:00
Sylvestre Ledru
a3a4457a44
clippy: spawned process is never 'wait()'ed on
2024-11-28 22:10:28 +01:00
Sylvestre Ledru
41a3695b3f
uucore: Fix a clippy warning
...
The following explicit lifetimes could be elided: 'a
2024-11-28 19:25:17 +01:00
Sylvestre Ledru
4d3902426a
clippy: fix unneeded 'return' statement
2024-11-28 19:24:36 +01:00
Sylvestre Ledru
cfb0b95b62
clippy: fix 'empty line after doc comment'
2024-11-28 19:24:33 +01:00
Sylvestre Ledru
29de3ee43c
run rustfmt on src/uu/shuf/src/shuf.rs
2024-11-28 19:18:15 +01:00
Peng Zijun
75de5a0613
tr: Add ambiguous octal escape warning ( #6886 )
...
* tr: Add ambiguous octal escape warning, issue #6821
* tr: Make code cleaner
2024-11-28 09:14:16 +01:00
Sylvestre Ledru
dea0afb2a5
Merge pull request #6896 from cakebaker/env_add_cfg_attributes_to_tests
...
env: add missing `cfg` attributes to tests
2024-11-27 11:55:57 +01:00
Daniel Hofstetter
ab9e5cb8a7
env: add missing cfg attributes to tests
2024-11-27 09:29:22 +01:00
Daniel Hofstetter
1a0bd63058
Merge pull request #6895 from uutils/renovate/blake3-1.x-lockfile
...
chore(deps): update rust crate blake3 to v1.5.5
2024-11-27 07:04:07 +01:00
Daniel Hofstetter
8594530376
Merge pull request #6894 from uutils/renovate/libc-0.x-lockfile
...
fix(deps): update rust crate libc to v0.2.166
2024-11-27 07:02:12 +01:00
renovate[bot]
069ec76f5b
chore(deps): update rust crate blake3 to v1.5.5
2024-11-27 04:27:39 +00:00
renovate[bot]
3e1328c81a
fix(deps): update rust crate libc to v0.2.166
2024-11-27 02:09:06 +00:00
Daniel Hofstetter
8692533790
uucore/perms: use ORs instead of match (fix todo)
2024-11-26 15:32:53 +01:00
Sylvestre Ledru
906a6330f5
Merge pull request #6890 from cakebaker/cp_remove_sleep_in_tests
...
cp: remove some `sleep()` calls in tests
2024-11-26 11:11:38 +01:00
Daniel Hofstetter
c8b0c8b612
cp: remove some sleep() calls in tests
2024-11-26 10:35:13 +01:00
Daniel Hofstetter
cae71a814c
Merge pull request #6868 from RenjiSann/checksum-fix-decoding
...
checksum: Further rework
2024-11-26 09:09:31 +01:00
Daniel Hofstetter
c315cd901c
Merge pull request #6889 from uutils/renovate/libc-0.x-lockfile
...
fix(deps): update rust crate libc to v0.2.165
2024-11-26 07:12:55 +01:00
Dorian Péron
cfc66f9f6f
chore(checksum): fix clippy warnings in tests
2024-11-26 01:47:10 +01:00
Dorian Péron
8c4f595f24
test(cksum): rework test for improperly formatted keeps processing
2024-11-26 01:47:10 +01:00
Dorian Péron
ba7c02860e
feat(checksum): odd number of hexa characters is wrong formatting
2024-11-26 01:47:10 +01:00
Dorian Péron
7c4724edc3
feat(checksum): refactor ChecksumResult to include more counters in it
...
- Add comments to explain what each field is counting
2024-11-26 01:47:10 +01:00
Dorian Péron
a0af49f2d8
feat(checksum): get rid of the properly_formatted variable
2024-11-26 01:47:10 +01:00
Dorian Péron
f3763ef190
feat(checksum): simplify get_expected_checksum
...
- Rename the function to emphasize its goal
- Do not pass the filename anymore, as it is only used to create an error, that may be done in the scope calling the function
- Change the return type to Option, as the error is made in the outer scope
- Don't try to decode the base64 string as UTF8 string. This most oftenly fails and is wrong.
- Get rid of the `bytes_to_hex` function, as it provides the same functionality as `hex::encode`
2024-11-26 01:47:10 +01:00
Dorian Péron
20dfe2dc10
test(cksum): remove duplicate testcase
2024-11-26 01:47:10 +01:00
Dorian Péron
a3b7403550
feat(checksum): improve FileCheckError variants to be meaningful
2024-11-26 01:47:10 +01:00
renovate[bot]
a81bd33b6b
fix(deps): update rust crate libc to v0.2.165
2024-11-25 22:58:46 +00:00
Sylvestre Ledru
c7798d5d20
Merge pull request #6880 from cakebaker/mv_remove_sleep_in_tests
...
mv: remove `sleep` in tests
2024-11-25 09:58:43 +01:00
Sylvestre Ledru
08e25d4b04
Merge pull request #6887 from cakebaker/bump_cpp
...
Bump `cpp` and `cpp_build` from `0.5.9` to `0.5.10`
2024-11-25 09:56:36 +01:00
Sylvestre Ledru
0dc849710c
Merge pull request #6888 from cakebaker/bump_thiserror
...
Bump `thiserror` from `1.0.69` to `2.0.3`
2024-11-25 09:56:23 +01:00
Daniel Hofstetter
c38897b101
deny.toml: add thiserror & thiserror-impl
...
to skip list
2024-11-25 09:32:01 +01:00