Vite Plus PATH shim can shadow external CLI upgrades (OpenCode example)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 50/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- node.js, rust
- 领域
- cli, operating-systems, tooling
调研方向
首先使用 opencode --version 和 opencode upgrade --print-logs 复现 Windows PowerShell 案例,然后检查 Vite Plus 如何将可执行文件放置在 ~/.vite-plus/bin 中,以及 PATH 如何解析它们。完成的标准是:外部升级成功后,普通的 opencode 命令能够运行新安装的版本,而无需手动替换;除非确认了其他案例,否则保持围绕 OpenCode 所声明的范围。
由索引模型根据 Issue 内容生成。
描述
Summary
On Windows, a Vite Plus-owned executable in ~\.vite-plus\bin can remain ahead of a newer version installed by that CLI's own updater. The shell command then continues to run the stale Vite Plus executable.
OpenCode is the confirmed example below. This may affect any externally updatable CLI for which Vite Plus installs an executable with the same command name, but this report does not claim other packages are currently affected.
Environment
- Windows
- Vite Plus:
0.2.4 - OpenCode before upgrade:
1.17.18
Reproduction
opencode --version
# 1.17.18
opencode upgrade --print-logs
The updater reported:
Using method: npm
From 1.17.18 → 1.18.1
Upgrade complete
But immediately afterwards:
opencode --version
# 1.17.18
Investigation
The command resolved to the Vite Plus-owned path:
C:\Users\<user>\.vite-plus\bin\opencode.exe
The updater had installed OpenCode 1.18.1 at:
C:\Users\<user>\.vite-plus\js_runtime\node\22.19.0\node_modules\opencode-ai\bin\opencode.exe
Running that executable directly returned 1.18.1; the PATH executable remained at 1.17.18.
Scope checked
- Confirmed:
opencodewas shadowed by the stale Vite Plus executable. - Not implicated in this installation:
npm,npx, andcorepackresolve to NVM rather than~\.vite-plus\bin. - Potentially affected pattern: any CLI that manages its own upgrades while Vite Plus also places a same-named executable earlier on PATH.
Expected behavior
After a CLI reports a successful self-upgrade, its normal shell command should run the upgraded version.
Workaround
Replacing the stale Vite Plus executable with the newly installed OpenCode executable made opencode --version report 1.18.1.
Suggested direction
Vite Plus could avoid installing static, same-named binaries for externally self-updating CLIs, make them forwarding shims, or provide a way to refresh the Vite Plus bin entry after an external upgrade.
- 主要语言
- Rust
- 星标
- 6k
- 派生
- 271
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 198
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
voidzero-dev/vite-plus 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
voidzero-dev/vite-plus#2970 ·
维护者通常 1 天内回复
-
PowerShell `vp` wrapper hides failures: `$?` is `True` and `&&` keeps going after `vp` fails可能已有人在做 @fengmk2 于 1 天前认领。 未关闭bug pending triage
难度 2/5 1-3 小时 新手友好度 72/100
voidzero-dev/vite-plus#2934 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Skip the `vpr` hint when the script runs the same built-in可能已有人在做 @kshanxs 今天认领。 未关闭pending triage
难度 2/5 1-3 小时 新手友好度 85/100
voidzero-dev/vite-plus#2892 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
pending triage
难度 2/5 1-3 小时 新手友好度 72/100
voidzero-dev/vite-plus#2882 · 2 条评论 ·
维护者通常 1 天内回复
-
`lazyPlugins` docs: dynamic import of a local module still slows down config loading可能已有人在做 @kshanxs 今天认领。 未关闭documentation pending triage
难度 1/5 1 小时以内 新手友好度 78/100
voidzero-dev/vite-plus#2875 · 4 条评论 ·
维护者通常 1 天内回复
查看 voidzero-dev/vite-plus 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
mishraprafful/multihull#150 ·
维护者通常 1 天内回复
-
ai_p2 comp-parquet-reader-v3
难度 2/5 半天 新手友好度 66/100
ClickHouse/ClickHouse#124986 ·
维护者通常 1 天内回复
-
bug(ktuner): exporter directories hide daemon processes可能已有人在做 @iloveeyjafjalla 今天认领。 未关闭component:ktuner
难度 2/5 1-3 小时 新手友好度 62/100
agentic-os-org/ANOLISA#6905 · 1 条评论 ·
维护者通常 1 天内回复
-
[Feature]: [P3] engine-rs: the package source hash should ignore line endings and untracked files未关闭
难度 2/5 1-3 小时 新手友好度 70/100
maniator/verticopolis#880 ·
维护者通常 1 天内回复
-
IO.get_env on Node truncates names at embedded NUL可能已有人在做 @Yi-111-a 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
HigherOrderCO/Bend#1449 · 1 条评论 ·