Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Build artifacts are committed, so git status is dirty after every build

オープン 初心者向け
#187 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
94/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
git, typescript

調査の方向性

まずルートの .gitignore と、追跡対象のファイル apps/http-server/tsconfig.tsbuildinfo および apps/ws-server/tsconfig.tsbuildinfo を確認します。issue にある git rm --cached コマンドを使って、ローカルのコピーを残したまま追跡を解除し、次に除外ルールを追加します。pnpm run build を実行して git status を確認します。両方のファイルがローカルに残り、ビルド後の作業ツリーがクリーンなら完了です。

索引モデルが issue の本文から書いたものです。

説明

documentation good first issue help wanted

Two TypeScript incremental-build caches are tracked by git:

$ git ls-files | grep tsbuildinfo
apps/http-server/tsconfig.tsbuildinfo
apps/ws-server/tsconfig.tsbuildinfo

They are regenerated by every pnpm build, so they show as modified immediately after any build:

$ pnpm run build && git status --short
 M apps/http-server/tsconfig.tsbuildinfo
 M apps/ws-server/tsconfig.tsbuildinfo
Why it matters

Anyone who builds before committing has to notice these and leave them out. Miss it, and a PR that should touch two files touches four, with a binary-looking diff nobody can review. It also makes git status useless as a check on what you actually changed.

For a new contributor this is a confusing first experience: they did not edit these files, but git says they did.

The subtlety

A .gitignore entry alone will not fix it. Git keeps tracking a file it already knows about, so the rule is ignored for these two. The repo already shows both outcomes:

apps/admin-server/.gitignore:4:*.tsbuildinfo        # added before anything was committed - clean
apps/http-server/.gitignore:5:/tsconfig.tsbuildinfo # added after - still tracked, still dirty

ws-server has no rule at all.

What a fix looks like
git rm --cached apps/http-server/tsconfig.tsbuildinfo apps/ws-server/tsconfig.tsbuildinfo

--cached removes them from git while leaving the files on disk, so nothing breaks locally. Then add *.tsbuildinfo to the root .gitignore so this cannot come back for a future app.

Worth a quick look for other generated files in the same position — git ls-files against the build output directories.

Definition of done
  • git status is clean straight after pnpm run build
  • *.tsbuildinfo is ignored repo-wide
  • The files still exist locally; incremental builds are not slower

Good first issue: two commands and a one-line ignore rule, and it removes a papercut every contributor hits.

主要言語
TypeScript
スター
21
フォーク
7
平均マージ
3時間 39分
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TheCodeHeist-Coder/Rexial のほかの issue

TheCodeHeist-Coder/Rexial の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。