fix(global): respect custom VP_HOME#2029
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 410a38e18e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@fengmk2 Worth mentioning: after this change, Vite+ will start injecting |
|
@nekomoyi @naokihaba I need your help to see if this added environment variable will have any side effects. |
Oh? I haven't seen it, I would take a look at it later. |
|
If I have previously installed vite-plus, and this time I reinstall it and set |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 003cc49858
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
This PR lets me run |
fengmk2
left a comment
There was a problem hiding this comment.
@liangmiQwQ Nice improve!
I will do a round simplify before I merge.
…pers - implode: normalize source-line args to forward slashes once instead of enumerating separator variants per root; drop path_ref_with_backslashes, push_path_ref and the env.nu special case; document the matcher's multi-install rationale and writer cross-references - home: share VP_BINARY_NAME from vite_shared (re-exported by vite_setup), avoid the per-PATH-entry clone, and drop redundant test guards - env/setup: reuse render_home_relative_path for the Nu VP_HOME and explain why it must stay absolute - install.sh: reuse abbreviate_path for the shims prompt, simplify normalize_existing_dir, use command -v directly - install.ps1: reuse the USERPROFILE-to-~ display idiom, drop the dead .Source fallback and redundant TrimEnd calls
|
@liangmiQwQ I'm done, back to your control. |
|
@liangmiQwQ I ran it once under Windows and haven't found any issues so far. |
|
@fengmk2 @nekomoyi @naokihaba Thank the team for inspecting, reviewing and simplifying! I'm a bit sleepy tonight, and I will take a look to know if there is anything need doing on my side tomorrow. @fengmk2 And I left a comment in your pull request, you can take a look #1958 (comment) |
|
GO! |
At present, Vite+ allows users to specific
VP_HOMEas an installation directory. However, for any futurevpruns without manualVP_HOMEenvironment, we still use default~/.vite-plusorvp's grandparent directory if its name is.vite-plus(It's related to #1185 by me).It will cause mess, like multiple Vite+ instances, vp binary not finding, packages unusable and a lot of unexpected behavior.
This PR improves all related logic, include:
VP_HOMEin env filesVP_HOMEVP_HOMEinpnpm boostrap-cliat devtime.The new

install.shprompt looks like that:🤖 Generated by Codex