du: adding ./ to the operand silently defeats --exclude=target/debug
メンテナーはふだん 1 日以内に返信
@costajohnt がすでに取り組んでいます。
2026年11月18日 から。
評価
調査の方向性
Read the traversal in src/uu/du/src/du.rs around lines 563–567 and the existing test_du_exclude_several_components fixture. Run that test with the ./a operand case described in the issue and compare the result with the reported du -bs --exclude=target/debug behavior. Done means the excluded target/debug subtree stays excluded when the operand is ./, and the regression is covered by a test.
索引モデルが issue の本文から書いたものです。
説明
A size check run from a project root counts the build artifacts it explicitly excludes. Even target and ./target give different totals for the same directory.
(
cd "$(mktemp -d)" || exit 1
export LC_ALL=C
mkdir -p target/debug docs/debug
head -c 1048576 /dev/zero > target/debug/app
printf 'keep\n' > docs/debug/guide
for dir in . target ./target; do
du -bs --exclude=target/debug "$dir"
done
)
| Operand | uutils | GNU 9.12 |
|---|---|---|
. |
1048581 | 5 |
target |
0 | 0 |
./target |
1048576 | 0 |
All commands exit 0 with empty stderr. Reproduced on Linux x86_64 with uutils 0.12.0 and main at 293a724. With du -a --exclude=target/debug ., uutils also lists ./target/debug/app. The five-byte docs/debug/guide should be counted in the project total.
The traversal checks the full path (./target/debug) and the basename (debug), missing the matching suffix target/debug. The existing test_du_exclude_several_components covers an exact full-path match. Running its fixture again with ./a would exercise this case.
- 主要言語
- Rust
- スター
- 24.4k
- フォーク
- 2.2k
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 402
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
uutils/coreutils のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
split -n leaves bytes from a previous run in chunks that should be empty対応中かも @costajohnt が 2 日前に担当しました。 オープンU - split
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
dircolors: '=' is not escaped and '^'/'\\' do not toggle the backslash state, unlike GNU再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンU - dircolors
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
メンテナーはふだん 1 日以内に返信
-
U - shred
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
chown -v: `+ID` spec echoed verbatim on a broken symlink対応中かも @sunsss123soldier が 7 日前に担当しました。 オープンgood first issue oss-scanner U - chown
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
uutils/coreutils の issue をすべて見る
似ている issue
-
marketing
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
S: Untriaged T: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
libnyanpasu/clash-nyanpasu#6537 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1時間未満 初心者へのやさしさ 62/100
tauri-apps/tao#1445 ·
メンテナーはふだん 1 日以内に返信
-
bug P3
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
go good first issue test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信