Skip to content

refactor: remove vp CLI cache feature#16

Merged
fengmk2 merged 3 commits intomainfrom
remove-vp-cli-cache
Mar 20, 2026
Merged

refactor: remove vp CLI cache feature#16
fengmk2 merged 3 commits intomainfrom
remove-vp-cli-cache

Conversation

@fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Mar 20, 2026

Summary

  • Remove the vp CLI caching feature (src/cache-vp.ts) which was disabled due to Windows Cannot find module 'which' issue (Windows runner failures with latest action version #10)
  • Remove force-install test matrix dimension and SETUP_VP_FORCE_INSTALL env var from all CI jobs, halving the number of CI matrix combinations
  • Dependency caching (cache: true) is unaffected

Test plan

  • vp run typecheck passes
  • vp run test passes (73 tests)
  • vp run check passes
  • vp run build succeeds

🤖 Generated with Claude Code

The vp CLI caching was disabled due to a Windows `Cannot find module
'which'` issue (#10) and adds unnecessary complexity. This removes it
entirely, including the force-install test matrix which halves CI jobs.

Dependency caching (`cache: true`) is unaffected.
Copilot AI review requested due to automatic review settings March 20, 2026 09:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the (currently disabled) Vite+ (vp) CLI installation caching feature and simplifies CI by dropping the force-install matrix dimension, while leaving the existing dependency caching feature (cache: true) intact.

Changes:

  • Remove vp CLI installation caching implementation (src/cache-vp.ts) and its associated tests/docs/state keys.
  • Simplify the Vite+ install flow to always perform a fresh install (no vp cache restore attempt).
  • Reduce CI matrix size by removing force-install and SETUP_VP_FORCE_INSTALL from workflows.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/types.ts Removes vp-cache-related State keys.
src/install-viteplus.ts Drops vp cache restore/version resolution and simplifies install signature.
src/index.ts Removes vp cache save in post step; updates install call site.
src/cache-vp.ts Deletes vp CLI cache implementation.
src/cache-vp.test.ts Deletes tests for the removed vp cache feature.
README.md Removes documentation for vp installation cache.
.github/workflows/test.yml Removes force-install matrix dimension and env var to halve CI combinations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengmk2 fengmk2 enabled auto-merge March 20, 2026 09:39
@fengmk2 fengmk2 disabled auto-merge March 20, 2026 13:42
@fengmk2 fengmk2 merged commit fd19e06 into main Mar 20, 2026
31 checks passed
@fengmk2 fengmk2 deleted the remove-vp-cli-cache branch March 20, 2026 13:43
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.

2 participants