Skip to content

fix: reuse active Vite+ installations for exact versions - #146

Draft
fengmk2 wants to merge 3 commits into
mainfrom
test/reproduce-vp-reinstall-145
Draft

fix: reuse active Vite+ installations for exact versions#146
fengmk2 wants to merge 3 commits into
mainfrom
test/reproduce-vp-reinstall-145

Conversation

@fengmk2

@fengmk2 fengmk2 commented Sep 10, 2026

Copy link
Copy Markdown
Member

The action now reuses an active installation when its version matches the requested exact version. This avoids repeated downloads on persistent runners. Fixes #145.

The action checks the payload version, dependency files, directory selection, shims, and Node.js manager configuration before reuse. It adds the selected bin directory to PATH. Node.js setup and the remaining action steps still run.

Reuse requires VP_DUMP_DIRS, which releases from 0.3.0 support. Missing files, configuration changes, other active versions, dist-tags, ranges, and preview builds use the existing installer path.

The regression test runs setup twice on Linux, macOS, and Windows with VP_HOME and split directories. A Linux case also checks XDG paths. The tests check for repeated downloads and changes to install.log.

All seven reuse cases pass in CI. All 444 unit tests pass. Type checking, vp run check:fix, vp run build, and workflow validation pass.

@fengmk2 fengmk2 changed the title test: reproduce repeated Vite+ installation (#145) fix: reuse active Vite+ installations for exact versions Sep 10, 2026
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.

Skip re-installing an already-installed Vite+ version: setup-vp and install.sh re-download on every job (~3s each)

1 participant