Miles Liu
b641aa36e6
CI: fix "uucore no unix feature" on freeBSD
2022-11-19 00:05:37 +08:00
Miles Liu
a446324681
CI: fix /dev/fd errors on FreeBSD
2022-11-19 00:05:37 +08:00
Miles Liu
d748e3900b
test_cp: ignore failing tests for FreeBSD
2022-11-19 00:05:37 +08:00
Miles Liu
3d51291685
CI: fix FreeBSD CI passed when tests failed
2022-11-19 00:04:34 +08:00
Terts Diepraam
2f311c7a2d
Merge pull request #4156 from uutils/dependabot/github_actions/Swatinem/rust-cache-2
...
build(deps): bump Swatinem/rust-cache from 1 to 2
2022-11-18 11:44:33 +01:00
dependabot[bot]
f8e2be57dd
build(deps): bump Swatinem/rust-cache from 1 to 2
...
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache ) from 1 to 2.
- [Release notes](https://github.com/Swatinem/rust-cache/releases )
- [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Swatinem/rust-cache/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: Swatinem/rust-cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-18 06:06:30 +00:00
Sylvestre Ledru
435ef5da8b
Merge pull request #4132 from tertsdiepraam/sort-accept-sort-mode-multiple-times
...
`sort`: allow a sort mode to appear multiple times
2022-11-17 21:43:28 +01:00
Sylvestre Ledru
54b4b5609b
Merge pull request #4153 from uutils/dependabot/cargo/clap-4.0.26
...
build(deps): bump clap from 4.0.24 to 4.0.26
2022-11-17 21:42:42 +01:00
Sylvestre Ledru
cb9e5588d7
Merge pull request #4148 from tertsdiepraam/prompt_yes
...
`uucore`: add `prompt_yes` macro
2022-11-17 21:42:01 +01:00
Terts Diepraam
33cbc94f25
rm: use uucore::prompt_yes over custom prompt function
2022-11-17 15:12:18 +01:00
Terts Diepraam
91df2b1709
mv: use uucore::prompt_yes over custom function
2022-11-17 15:11:19 +01:00
Terts Diepraam
7bb0e8f849
ln: use uucore::prompt_yes over custom function
2022-11-17 15:10:26 +01:00
Terts Diepraam
ed34264b95
cp: use uucore prompt_yes instead of custom
2022-11-17 15:09:34 +01:00
Terts Diepraam
6cdcfca573
uucore: add prompt_yes!() and read_yes()
...
These functions are based on existing functions and macros
in utils `cp`, `ln`, `mv ` and `rm`. This unifies the separate
implementations.
2022-11-17 15:06:49 +01:00
Sylvestre Ledru
c00fc0a8c4
Merge pull request #4146 from niyaznigmatullin/clippy_fix
...
Run `cargo +nightly clippy --fix`
2022-11-17 10:33:40 +01:00
dependabot[bot]
69c56f82bb
build(deps): bump clap from 4.0.24 to 4.0.26
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.24 to 4.0.26.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.24...v4.0.26 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 09:31:17 +00:00
Sylvestre Ledru
14f22a26b8
Merge pull request #4152 from uutils/dependabot/cargo/digest-0.10.6
...
build(deps): bump digest from 0.10.5 to 0.10.6
2022-11-17 10:29:07 +01:00
Sylvestre Ledru
00786cd8d3
Merge pull request #4151 from miles170/issue-4149-refactor-use
...
uu: use normal use declarations to import macros
2022-11-17 08:48:15 +01:00
dependabot[bot]
59c9063248
build(deps): bump digest from 0.10.5 to 0.10.6
...
Bumps [digest](https://github.com/RustCrypto/traits ) from 0.10.5 to 0.10.6.
- [Release notes](https://github.com/RustCrypto/traits/releases )
- [Commits](https://github.com/RustCrypto/traits/compare/digest-v0.10.5...digest-v0.10.6 )
---
updated-dependencies:
- dependency-name: digest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 06:13:25 +00:00
Miles Liu
d505df5369
uu: use normal use declarations to import macros
2022-11-17 11:49:23 +08:00
Terts Diepraam
82464b703a
stat: remove extend_digits and print_adjusted in favor of format!
2022-11-17 01:25:10 +01:00
Terts Diepraam
3499bdaeac
stat: change precision from i32 to Option<usize>
2022-11-17 00:13:20 +01:00
Terts Diepraam
cdb777a243
stat: remove pub after moving tests
2022-11-16 23:47:45 +01:00
Terts Diepraam
b0894f86ed
stat: minor cleanup
2022-11-16 23:45:35 +01:00
Terts Diepraam
406df12b18
stat: make OutputType carry data, instead of turning everthing immediately into a string
2022-11-16 22:23:03 +01:00
Terts Diepraam
b0224e8145
stat: move unit tests to stat.rs instead of test_stat.rs
2022-11-16 21:17:39 +01:00
Terts Diepraam
7e5b6400e3
stat: use Flags struct instead of u8 bit manipulation
2022-11-16 21:12:40 +01:00
Terts Diepraam
ad713fd1d9
stat: clean up some comments
2022-11-16 20:48:21 +01:00
Terts Diepraam
7330effa68
Merge pull request #4123 from sssemil/preserve_noargs_4122
...
cp: make `--preserve` use the defaults when empty
2022-11-16 11:49:16 +01:00
Niyaz Nigmatullin
fdd6a05259
chore: run cargo +nightly clippy --fix
2022-11-16 11:09:44 +02:00
dependabot[bot]
7d2efd2e5e
build(deps): bump selinux from 0.3.0 to 0.3.1
...
Bumps [selinux](https://github.com/koutheir/selinux ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/koutheir/selinux/releases )
- [Changelog](https://github.com/koutheir/selinux/blob/master/CHANGELOG.md )
- [Commits](https://github.com/koutheir/selinux/commits )
---
updated-dependencies:
- dependency-name: selinux
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-16 08:56:24 +01:00
Sylvestre Ledru
c3218740dc
Merge pull request #4142 from uutils/dependabot/cargo/clap-4.0.24
...
build(deps): bump clap from 4.0.22 to 4.0.24
2022-11-16 08:56:08 +01:00
Emil Suleymanov
a6c48b084c
test_cp: verify metadata for preserve no args case
2022-11-16 01:39:25 +01:00
Emil Suleymanov
8591d99c1b
cp: make --preserve
use the defaults when empty
2022-11-16 01:24:26 +01:00
Sylvestre Ledru
0324a9480e
Merge pull request #4140 from uutils/dependabot/cargo/indicatif-0.17.2
...
build(deps): bump indicatif from 0.17.0 to 0.17.2
2022-11-15 23:15:16 +01:00
Sylvestre Ledru
6f8fced8ed
Merge pull request #4145 from niyaznigmatullin/chrono-0.4.23
...
build(deps): bump chrono from 0.4.22 to 0.4.23 + fix clippy warning
2022-11-15 23:14:14 +01:00
Niyaz Nigmatullin
012bb7e3d8
deps: fix clippy warning for chrono
usage
2022-11-15 17:52:20 +02:00
Terts Diepraam
03c40b2db2
sort: allow a sort mode to appear multiple times
...
A test case for this is `sort -k 2n,2n` which should be accepted, because `n` is
compatible with itself.
Resolves issue #4129 .
2022-11-15 14:22:01 +01:00
Jeffrey Finkelstein
4621557ce7
dd: create Dest enum and simpler Output struct
2022-11-15 14:21:54 +01:00
dependabot[bot]
af2833761c
build(deps): bump chrono from 0.4.22 to 0.4.23
...
Bumps [chrono](https://github.com/chronotope/chrono ) from 0.4.22 to 0.4.23.
- [Release notes](https://github.com/chronotope/chrono/releases )
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md )
- [Commits](https://github.com/chronotope/chrono/compare/v0.4.22...v0.4.23 )
---
updated-dependencies:
- dependency-name: chrono
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 14:21:20 +01:00
dependabot[bot]
5dfd4c1dff
build(deps): bump indicatif from 0.17.0 to 0.17.2
...
Bumps [indicatif](https://github.com/console-rs/indicatif ) from 0.17.0 to 0.17.2.
- [Release notes](https://github.com/console-rs/indicatif/releases )
- [Commits](https://github.com/console-rs/indicatif/compare/0.17.0...0.17.2 )
---
updated-dependencies:
- dependency-name: indicatif
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 14:21:15 +01:00
dependabot[bot]
67e1eeda2b
build(deps): bump clap from 4.0.22 to 4.0.24
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.22 to 4.0.24.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.22...v4.0.24 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 14:20:50 +01:00
Sylvestre Ledru
8e1742f45a
Merge pull request #4144 from niyaznigmatullin/disable_test_cp_parents_2_dirs_for_android
...
test_cp: temporarily disable non-working test on Android
2022-11-15 10:37:49 +01:00
Sylvestre Ledru
47e86f37c8
Merge pull request #4143 from niyaznigmatullin/grcov_output_type
...
CI: switch back to use `output-type` in GNU tests with coverage
2022-11-15 10:13:21 +01:00
Niyaz Nigmatullin
f73f686ca3
test_cp: temporarily disable non-working test on Android
2022-11-15 10:00:59 +02:00
Niyaz Nigmatullin
17ec577d9a
CI: switch back to use output-type
in grcov
...
`output-types` coming in new version, we are getting
`grcov` here from `crates.io`, so no `output-type`.
`grcov` has commit to support old `output-type` as well.
2022-11-15 09:54:13 +02:00
Terts Diepraam
46016bf9ce
Merge pull request #4130 from jfinkels/dd-no-allocate-count-zero
...
dd: don't allocate buffer if count=0
2022-11-13 12:05:17 +01:00
Jeffrey Finkelstein
5ee5681343
dd: don't allocate buffer if count=0
...
As an optimization, prevent `dd` from allocating buffers for use in
its main loop when `count=0`.
2022-11-12 18:18:16 -05:00
Sylvestre Ledru
55f26f0ab2
Merge pull request #4131 from sylvestre/grcov
...
coverage: rename the arg to match a change in grcov
2022-11-12 09:59:16 +01:00
Sylvestre Ledru
69962250ff
coverage: rename the arg to match a change in grcov
...
See https://github.com/mozilla/grcov/pull/893
2022-11-12 08:54:34 +01:00