Skip to content

fix: use staging install scripts to fix Windows runner failures #10#11

Merged
fengmk2 merged 3 commits intomainfrom
fix-issue-10
Mar 19, 2026
Merged

fix: use staging install scripts to fix Windows runner failures #10#11
fengmk2 merged 3 commits intomainfrom
fix-issue-10

Conversation

@fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Mar 19, 2026

Summary

  • Temporarily switch install URLs from viteplus.dev to staging.viteplus.dev to fix the Cannot find module 'which' error on Windows runners (Windows runner failures with latest action version #10)
  • Add test-vp-exec and test-vp-install-and-exec jobs that run vp exec and vp run across all platforms (ubuntu, macos, windows) to prevent regressions

Context

Issue #10 reports that vp exec fails on Windows runners with:

Error: Cannot find module 'which'

The root cause is in the vite-plus install script served from viteplus.dev. The staging version (staging.viteplus.dev) has the fix. Once a new version of vite-plus is released with the fix, we'll revert the domain back to viteplus.dev.

Changes

  • src/install-viteplus.ts: Switch install URLs to staging.viteplus.dev (temporary)
  • .github/workflows/test.yml: Add test-vp-exec and test-vp-install-and-exec test jobs

Test plan

  • test-vp-exec passes on all platforms (ubuntu, macos, windows)
  • test-vp-install-and-exec passes on all platforms

Closes #10

🤖 Generated with Claude Code

fengmk2 added 3 commits March 19, 2026 17:27
Add two new test jobs that exercise `vp exec` and `vp run` across
ubuntu, macos, and windows runners. The existing tests only verify
`vp --version` which doesn't trigger the cross-spawn/which code path
that fails on Windows (issue #10).
@fengmk2 fengmk2 changed the title test: add vp exec tests to reproduce Windows failure #10 fix: use staging install scripts to fix Windows runner failures #10 Mar 19, 2026
@fengmk2 fengmk2 marked this pull request as ready for review March 19, 2026 09:41
Copilot AI review requested due to automatic review settings March 19, 2026 09:41
@fengmk2 fengmk2 merged commit 3c260a1 into main Mar 19, 2026
32 of 34 checks passed
@fengmk2 fengmk2 deleted the fix-issue-10 branch March 19, 2026 09:41
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 addresses Windows GitHub Actions runner failures by temporarily switching the Vite+ installer script host to the staging domain, and adds cross-platform workflow coverage to exercise vp exec/vp run behavior to prevent regressions.

Changes:

  • Update Vite+ install script URLs from viteplus.dev to staging.viteplus.dev.
  • Add test-vp-exec and test-vp-install-and-exec CI jobs across Ubuntu/macOS/Windows to validate vp exec and vp run flows.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/install-viteplus.ts Points install script URLs at staging.viteplus.dev to pick up the Windows fix.
.github/workflows/test.yml Adds cross-platform jobs validating vp exec and vp run (including an install-in-project scenario).

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

Comment on lines +9 to +10
const INSTALL_URL_SH = "https://staging.viteplus.dev/install.sh";
const INSTALL_URL_PS1 = "https://staging.viteplus.dev/install.ps1";

- name: Verify vp run works (list available scripts)
run: vp run --list
continue-on-error: true
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.

Windows runner failures with latest action version

2 participants