Built-in tool tasks miss the cache after the workspace moves
Maintainer thường phản hồi trong vòng 1 ngày
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
Hướng nghiên cứu
Start by tracing the code that synthesizes built-in tool commands and how vp run constructs the command and cache key. Check how the entry script is currently passed alongside other arguments, then identify the workspace-relative behavior described in the proposal. Done means an in-workspace entry is relative to the task directory both when run and in the cache key, while other arguments behave as before.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
When a task runs a built-in tool like vp lint or vp test, the planned command includes the absolute path of the tool's entry script, for example /home/me/project/node_modules/oxlint/bin/oxlint. That path is part of the cache key, so moving the workspace, cloning it somewhere else, or running from a git worktree misses the cache for every one of those tasks, even though nothing about them changed.
Proposal
Let the code that synthesizes these commands pass the tool's entry script separately from its other arguments. When the entry is inside the workspace, vp run passes it relative to the task's directory, in both the command it runs and the cache key. Everything else stays as it is today.
Related
#717 covers the case where the entry is outside the workspace, in a global pnpm store. That needs a different fix.
- Ngôn ngữ chính
- Rust
- Star
- 471
- Fork
- 42
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 46
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-task
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
voidzero-dev/vite-task#791 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vp run: output forwarding fails with EAGAIN when an inherited Node child sets stdout non-blockingĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
voidzero-dev/vite-task#782 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
remote cache
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
voidzero-dev/vite-task#781 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
remote cache
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
voidzero-dev/vite-task#779 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
remote cache
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
voidzero-dev/vite-task#778 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/vite-task
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Outdated docs on front pageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
rust-windowing/winit#4731 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:cli bug priority:high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
rtk-ai/rtk#4439 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
component:sight
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
agentic-os-org/ANOLISA#4622 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày