Build artifacts are committed, so git status is dirty after every build
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Anfängerfreundlichkeit
- 94/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- git, typescript
- Bereich
- build-system, developer-experience
Rechercherichtung
Prüfe zuerst die .gitignore im Stammverzeichnis und die getrackten Dateien apps/http-server/tsconfig.tsbuildinfo und apps/ws-server/tsconfig.tsbuildinfo. Verwende den Befehl git rm --cached aus dem Issue, um sie aus der Versionsverwaltung zu nehmen und lokale Kopien zu behalten, und füge dann die Ignore-Regel hinzu. Führe pnpm run build aus und prüfe git status; fertig ist es, wenn beide Dateien lokal vorhanden bleiben und der Build den Arbeitsbaum sauber hinterlässt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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 statusis clean straight afterpnpm run build*.tsbuildinfois 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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 21
- Forks
- 7
- Ø Merge
- 3 Std. 39 Min.
- Gemergte PRs (30 T.)
- 16
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TheCodeHeist-Coder/Rexial
-
documentation good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
TheCodeHeist-Coder/Rexial#195 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Backend first issue bug help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
TheCodeHeist-Coder/Rexial#193 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Backend first issue bug good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
TheCodeHeist-Coder/Rexial#192 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Backend first issue bug good first issue help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
TheCodeHeist-Coder/Rexial#191 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue help wanted UI & UX
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 90/100
TheCodeHeist-Coder/Rexial#190 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TheCodeHeist-Coder/Rexial
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
farion1231/cc-switch#8829 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverOffendoc-audit enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100