As a git hook, the tracker cannot match files on worktrees due to mismatched path prefixes

Aperta
#223 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
git, react, typescript
Ambito
devtools, tooling

Direzione di ricerca

Start by reading getGitPrefix and stage, then trace the git calls they make when invoked as a hook in a worktree. Check how filtered paths lead to the “No files to check” message, and review the integration examples if relevant. Done means the hook handles worktree paths, warns when all supplied paths are filtered out, and standalone and CI behavior remains intact.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

As git sets GIT_DIR for hooks in worktrees (e.g. GIT_DIR=.git/worktrees/<name>), this causes the tracker to not match any files, resulting in never catching anything.

It still works when run standalone or in CI, but we need to improve this. This means:

  • Run its git calls in getGitPrefix (and in stage) without GIT_DIR and GIT_WORK_TREE. It should warn when every path it was given gets filtered out, instead of printing "No files to check".
  • Update integration examples, if necesseary
Lingua principale
TypeScript
Stelle
2
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Doist/react-compiler-tracker

Tutte le issue di Doist/react-compiler-tracker

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.