Skip to content

Commit 472ea3c

Browse files
committed
Merge branch 'main' into fix/id-human-readable-output
Adds l10n translations for `id-output-rgid`
2 parents 2d30c16 + 4128efa commit 472ea3c

File tree

390 files changed

+6650
-4378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

390 files changed

+6650
-4378
lines changed

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ linker = "x86_64-unknown-redox-gcc"
33

44
[env]
55
PROJECT_NAME_FOR_VERSION_STRING = "uutils coreutils"
6+
7+
# libstdbuf must be a shared library, so musl libc can't be linked statically
8+
# https://github.com/rust-lang/rust/issues/82193
9+
[build]
10+
rustflags = [ "-C", "target-feature=-crt-static" ]

.github/workflows/CICD.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,14 +443,14 @@ jobs:
443443
--arg multisize "$SIZE_MULTI" \
444444
'{($date): { sha: $sha, size: $size, multisize: $multisize, }}' > size-result.json
445445
- name: Download the previous individual size result
446-
uses: dawidd6/action-download-artifact@v9
446+
uses: dawidd6/action-download-artifact@v10
447447
with:
448448
workflow: CICD.yml
449449
name: individual-size-result
450450
repo: uutils/coreutils
451451
path: dl
452452
- name: Download the previous size result
453-
uses: dawidd6/action-download-artifact@v9
453+
uses: dawidd6/action-download-artifact@v10
454454
with:
455455
workflow: CICD.yml
456456
name: size-result
@@ -526,6 +526,8 @@ jobs:
526526
- { os: ubuntu-latest , target: x86_64-unknown-redox , features: feat_os_unix_redox , use-cross: redoxer , skip-tests: true }
527527
- { os: ubuntu-latest , target: wasm32-unknown-unknown , default-features: false, features: uucore/format, skip-tests: true, skip-package: true, skip-publish: true }
528528
- { os: macos-latest , target: aarch64-apple-darwin , features: feat_os_macos, workspace-tests: true } # M1 CPU
529+
# PR #7964: Mac should still build even if the feature is not enabled
530+
- { os: macos-latest , target: aarch64-apple-darwin , workspace-tests: true } # M1 CPU
529531
- { os: macos-13 , target: x86_64-apple-darwin , features: feat_os_macos, workspace-tests: true }
530532
- { os: windows-latest , target: i686-pc-windows-msvc , features: feat_os_windows }
531533
- { os: windows-latest , target: x86_64-pc-windows-gnu , features: feat_os_windows }
@@ -653,10 +655,6 @@ jobs:
653655
;;
654656
esac
655657
outputs CARGO_TEST_OPTIONS
656-
# ** pass needed environment into `cross` container (iff `cross` not already configured via "Cross.toml")
657-
if [ "${CARGO_CMD}" = 'cross' ] && [ ! -e "Cross.toml" ] ; then
658-
printf "[build.env]\npassthrough = [\"CI\", \"RUST_BACKTRACE\", \"CARGO_TERM_COLOR\"]\n" > Cross.toml
659-
fi
660658
# * executable for `strip`?
661659
STRIP="strip"
662660
case ${{ matrix.job.target }} in

.github/workflows/GnuTests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
working-directory: ${{ steps.vars.outputs.path_GNU }}
137137

138138
- name: Retrieve reference artifacts
139-
uses: dawidd6/action-download-artifact@v9
139+
uses: dawidd6/action-download-artifact@v10
140140
# ref: <https://github.com/dawidd6/action-download-artifact>
141141
continue-on-error: true ## don't break the build for missing reference artifacts (may be expired or just not generated yet)
142142
with:
@@ -162,6 +162,7 @@ jobs:
162162
sudo locale-gen
163163
sudo locale-gen --keep-existing fr_FR
164164
sudo locale-gen --keep-existing fr_FR.UTF-8
165+
sudo locale-gen --keep-existing es_ES.UTF-8
165166
sudo locale-gen --keep-existing sv_SE
166167
sudo locale-gen --keep-existing sv_SE.UTF-8
167168
sudo locale-gen --keep-existing en_US
@@ -193,7 +194,7 @@ jobs:
193194
194195
- name: Selinux - Build for selinux tests
195196
run: |
196-
lima bash -c "cd ~/work/uutils/ && bash util/build-gnu.sh"
197+
lima bash -c "cd ~/work/uutils/ && bash util/build-gnu.sh --release-build"
197198
lima bash -c "mkdir -p ~/work/gnu/tests-selinux/"
198199
199200
- name: Selinux - Run selinux tests

.github/workflows/code-quality.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
fail-fast: false
7979
matrix:
8080
job:
81-
- { os: ubuntu-latest , features: feat_os_unix }
81+
- { os: ubuntu-latest , features: all , workspace: true }
8282
- { os: macos-latest , features: feat_os_macos }
8383
- { os: windows-latest , features: feat_os_windows }
8484
steps:
@@ -104,6 +104,16 @@ jobs:
104104
*) FAIL_ON_FAULT=true ; FAULT_TYPE=error ;;
105105
esac;
106106
outputs FAIL_ON_FAULT FAULT_TYPE
107+
- name: Install/setup prerequisites
108+
shell: bash
109+
run: |
110+
## Install/setup prerequisites
111+
case '${{ matrix.job.os }}' in
112+
ubuntu-*)
113+
# selinux headers needed to enable all features
114+
sudo apt-get -y install libselinux1-dev
115+
;;
116+
esac
107117
- name: "`cargo clippy` lint testing"
108118
uses: nick-fields/retry@v3
109119
with:
@@ -117,7 +127,17 @@ jobs:
117127
fault_type="${{ steps.vars.outputs.FAULT_TYPE }}"
118128
fault_prefix=$(echo "$fault_type" | tr '[:lower:]' '[:upper:]')
119129
# * convert any warnings to GHA UI annotations; ref: <https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-a-warning-message>
120-
S=$(cargo clippy --all-targets --features ${{ matrix.job.features }} --tests -pcoreutils -- -D warnings 2>&1) && printf "%s\n" "$S" || { printf "%s\n" "$S" ; printf "%s" "$S" | sed -E -n -e '/^error:/{' -e "N; s/^error:[[:space:]]+(.*)\\n[[:space:]]+-->[[:space:]]+(.*):([0-9]+):([0-9]+).*$/::${fault_type} file=\2,line=\3,col=\4::${fault_prefix}: \`cargo clippy\`: \1 (file:'\2', line:\3)/p;" -e '}' ; fault=true ; }
130+
if [[ "${{ matrix.job.features }}" == "all" ]]; then
131+
extra="--all-features"
132+
else
133+
extra="--features ${{ matrix.job.features }}"
134+
fi
135+
case '${{ matrix.job.workspace-tests }}' in
136+
1|t|true|y|yes)
137+
extra="${extra} --workspace"
138+
;;
139+
esac
140+
S=$(cargo clippy --all-targets $extra --tests -pcoreutils -- -D warnings 2>&1) && printf "%s\n" "$S" || { printf "%s\n" "$S" ; printf "%s" "$S" | sed -E -n -e '/^error:/{' -e "N; s/^error:[[:space:]]+(.*)\\n[[:space:]]+-->[[:space:]]+(.*):([0-9]+):([0-9]+).*$/::${fault_type} file=\2,line=\3,col=\4::${fault_prefix}: \`cargo clippy\`: \1 (file:'\2', line:\3)/p;" -e '}' ; fault=true ; }
121141
if [ -n "${{ steps.vars.outputs.FAIL_ON_FAULT }}" ] && [ -n "$fault" ]; then exit 1 ; fi
122142
123143
style_spellcheck:

.github/workflows/freebsd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
style:
2525
name: Style and Lint
2626
runs-on: ${{ matrix.job.os }}
27-
timeout-minutes: 90
27+
timeout-minutes: 45
2828
strategy:
2929
fail-fast: false
3030
matrix:
@@ -117,7 +117,7 @@ jobs:
117117
test:
118118
name: Tests
119119
runs-on: ${{ matrix.job.os }}
120-
timeout-minutes: 90
120+
timeout-minutes: 45
121121
strategy:
122122
fail-fast: false
123123
matrix:

.pre-commit-config.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,43 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
13
repos:
2-
- repo: local
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
36
hooks:
4-
- id: rust-linting
7+
- id: check-added-large-files
8+
- id: check-executables-have-shebangs
9+
- id: check-json
10+
- id: check-shebang-scripts-are-executable
11+
exclude: '.+\.rs' # would be triggered by #![some_attribute]
12+
- id: check-symlinks
13+
- id: check-toml
14+
- id: check-yaml
15+
args: [ --allow-multiple-documents ]
16+
- id: destroyed-symlinks
17+
- id: end-of-file-fixer
18+
- id: mixed-line-ending
19+
args: [ --fix=lf ]
20+
- id: trailing-whitespace
21+
22+
- repo: local
23+
hooks:
24+
- id: rust-linting
525
name: Rust linting
626
description: Run cargo fmt on files included in the commit.
727
entry: cargo +stable fmt --
828
pass_filenames: true
929
types: [file, rust]
1030
language: system
11-
- id: rust-clippy
31+
- id: rust-clippy
1232
name: Rust clippy
1333
description: Run cargo clippy on files included in the commit.
14-
entry: cargo +stable clippy --workspace --all-targets --all-features --
34+
entry: cargo +stable clippy --workspace --all-targets --all-features -- -D warnings
1535
pass_filenames: false
1636
types: [file, rust]
1737
language: system
18-
- id: cspell
38+
- id: cspell
1939
name: Code spell checker (cspell)
2040
description: Run cspell to check for spelling errors.
21-
entry: cspell --
41+
entry: cspell --no-must-find-files --
2242
pass_filenames: true
2343
language: system

.vscode/cSpell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"tests/**/fixtures/**",
2727
"src/uu/dd/test-resources/**",
2828
"vendor/**",
29-
"**/*.svg"
29+
"**/*.svg",
30+
"src/uu/*/locales/*.ftl"
3031
],
3132

3233
"enableGlobDot": true,

0 commit comments

Comments
 (0)