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

Đang mở
#223 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, react, typescript
Lĩnh vực
devtools, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
TypeScript
Star
2
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Doist/react-compiler-tracker

Tất cả issue của Doist/react-compiler-tracker

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.