Skip to content

fix(cli): enable cache support for vp check in task runner#1328

Draft
fengmk2 wants to merge 1 commit intomainfrom
vp-check-support-cache
Draft

fix(cli): enable cache support for vp check in task runner#1328
fengmk2 wants to merge 1 commit intomainfrom
vp-check-support-cache

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented Apr 7, 2026

When vp check was used as a script (e.g., "check": "vp check") and
run via vp run check with run: { cache: true }, cache was always
disabled because the command handler forced UserCacheConfig::disabled().

Change the Check handler to use UserCacheConfig::with_config(...) with
auto input tracking and task-cache directory exclusions, matching the
pattern used by other synthesized commands (build, lint, fmt).

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 7, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit d08d260
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/69d512acaab13e0008a6316a

@fengmk2 fengmk2 self-assigned this Apr 7, 2026
Copy link
Copy Markdown
Member Author

fengmk2 commented Apr 7, 2026


How to use the Graphite Merge Queue

Add the label auto-merge to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@fengmk2 fengmk2 force-pushed the vp-check-support-cache branch 4 times, most recently from 272b3c3 to 2bb54c0 Compare April 7, 2026 13:33
When `vp check` was used as a script (e.g., `"check": "vp check"`) and
run via `vp run check` with `run: { cache: true }`, cache was always
disabled because the command handler forced `UserCacheConfig::disabled()`.

Change the Check handler to use `UserCacheConfig::with_config(...)` with
auto input tracking and task-cache directory exclusions, matching the
pattern used by other synthesized commands (build, lint, fmt).
@fengmk2 fengmk2 force-pushed the vp-check-support-cache branch from 2bb54c0 to d08d260 Compare April 7, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant