Skip to content

fix: normalize backslashes in env.fish fallback path for Windows/msys (#1953)#1954

Open
Aalivexy wants to merge 1 commit into
voidzero-dev:mainfrom
Aalivexy:fix/fish-env-backslash-path-windows
Open

fix: normalize backslashes in env.fish fallback path for Windows/msys (#1953)#1954
Aalivexy wants to merge 1 commit into
voidzero-dev:mainfrom
Aalivexy:fix/fish-env-backslash-path-windows

Conversation

@Aalivexy

Copy link
Copy Markdown

Close #1953

Copilot AI review requested due to automatic review settings June 26, 2026 07:41
@netlify

netlify Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit ca52e74
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a3ec7e0b3394a0008f5cf40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes Windows/msys-generated env.fish (and other POSIX-like env files) producing backslash-separated paths by normalizing the fallback (non-$HOME-relative) bin path to forward slashes, preventing Fish parse errors when sourcing the file. This change is in the global CLI’s env-file renderer (vp env setup / env file generation), directly addressing issue #1953.

Changes:

  • Normalize bin_path_ref to use / separators even when the install dir can’t be expressed as $HOME/... (fallback path case).

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

@fengmk2

fengmk2 commented Jun 26, 2026

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b449b8ede2

ℹ️ 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".

Comment thread crates/vite_global_cli/src/commands/env/setup.rs
Comment thread crates/vite_global_cli/src/commands/env/setup.rs
@Aalivexy Aalivexy force-pushed the fix/fish-env-backslash-path-windows branch from b449b8e to 01c496f Compare June 26, 2026 18:34
@Aalivexy Aalivexy force-pushed the fix/fish-env-backslash-path-windows branch from 01c496f to ca52e74 Compare June 26, 2026 18:41
@Aalivexy Aalivexy changed the title fix: normalize backslashes in env.fish fallback path for Windows/msys (#) fix: normalize backslashes in env.fish fallback path for Windows/msys (#1953) Jun 26, 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.

Generated env.fish contains backslash paths (invalid in Fish) on Windows/msys

3 participants