Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ env:

jobs:
test_android:
# The upstream emulator job needs runner/KVM resources not reliably
# available to forks; retain the workflow for upstream builds.
if: github.repository == 'uutils/coreutils'
name: Test builds
timeout-minutes: 90
strategy:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ jobs:

benchmarks:
needs: detects-benchmarks
if: needs.detects-benchmarks.outputs.package != '[]'
# CodSpeed uploads require an organization-linked project; forks receive
# HTTP 401 and cannot publish measurements to the upstream project.
if: github.repository == 'uutils/coreutils' && needs.detects-benchmarks.outputs.package != '[]'
name: Run ${{ matrix.type }} benchmarks for ${{ matrix.package }} (CodSpeed)
runs-on: ubuntu-latest
timeout-minutes: 90
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/wsl2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ jobs:
shell: wsl-bash {0}
run: |
mkdir -p "$HOME/src"
curl -L https://github.com/uutils/coreutils/archive/${{ github.sha }}.tar.gz | tar -xzf - --strip-components=1 -C "$HOME/src"
# Use the actual repository: a fork's commit SHA is not available
# in the upstream uutils/coreutils source archive.
curl --fail --location --silent --show-error \
"https://github.com/${{ github.repository }}/archive/${{ github.sha }}.tar.gz" \
-o "$HOME/coreutils-source.tar.gz"
tar -xzf "$HOME/coreutils-source.tar.gz" --strip-components=1 -C "$HOME/src"
- name: Install rust and nextest
shell: wsl-bash {0}
run: |
Expand Down
Empty file modified hamdy-tools/build.sh
100644 → 100755
Empty file.
Empty file modified hamdy-tools/install-locales.sh
100644 → 100755
Empty file.
Empty file modified hamdy-tools/test-upstream-environment.sh
100644 → 100755
Empty file.
Empty file modified hamdy-tools/test-upstream.sh
100644 → 100755
Empty file.
Empty file modified hamdy-tools/tests/options.py
100644 → 100755
Empty file.
Empty file modified hamdy-tools/tests/verify.py
100644 → 100755
Empty file.
5 changes: 4 additions & 1 deletion src/uu/pr/src/pr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,10 @@ fn render_nonprinting(bytes: &[u8], octal: bool) -> String {
});
}
0..=31 | 127 | 128..=255 => {
output.push_str(&format!("\\{byte:03o}"));
output.push('\\');
output.push(char::from(b'0' + ((byte >> 6) & 7)));
output.push(char::from(b'0' + ((byte >> 3) & 7)));
output.push(char::from(b'0' + (byte & 7)));
}
_ => output.push(char::from(byte)),
}
Expand Down
19 changes: 3 additions & 16 deletions vendor/num-prime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,8 @@ Generic and optimized primality test, factorization and various number theoretic
"""
documentation = "https://docs.rs/num-prime"
readme = "README.md"
keywords = [
"bigint",
"mathematics",
"num",
"number-theory",
"primes",
]
categories = [
"algorithms",
"cryptography",
"science",
]
keywords = ["bigint", "mathematics", "num", "number-theory", "primes"]
categories = ["algorithms", "cryptography", "science"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/uutils/num-prime"

Expand All @@ -46,10 +36,7 @@ all-features = true
[features]
big-int = ["dep:num-bigint"]
big-table = []
default = [
"big-int",
"big-table",
]
default = ["big-int", "big-table"]

[lib]
name = "num_prime"
Expand Down
Loading