[Bug]: pnpm global-store links fail updater package verification

オープン
#8,183 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Ingwannu がすでに取り組んでいます。

2026年11月7日 から。

  • #8298 @Ingwannu による — オープン
  • #8331 @lidge-jun による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
67/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
backend, cli

調査の方向性

Find verifyPnpmInstallTree and read the ownership and sentinel dependency checks; the issue says the global virtual-store link directory has neither .pnpm nor .modules.yaml. Reproduce the reported layout and run the verifier’s tests. Done means valid linked bun and zod dependencies pass while ownership and integrity checks still reject invalid installations.

索引モデルが issue の本文から書いたものです。

説明

bug install
Client or integration

Other: OpenCodex CLI

Area

Installation or packaging

Summary

ocx update rejects a working pnpm global installation before it reaches the update. The verifier reports missing Bun and Zod even though both are linked in the package's pnpm global virtual-store dependency directory and the CLI and proxy start successfully. The proxy is left running.

Reproduction
  1. Install @bitkyc08/opencodex globally with pnpm 12 using a global virtual store. In the affected installation, the active package is a symlink into store/v11/links/.../node_modules/@bitkyc08/opencodex; its sibling node_modules/bun and node_modules/zod are valid links.
  2. Start the proxy and run ocx update --tag latest.
  3. The updater reports that the active package failed verification and exits before stopping the proxy. This occurs with both 2.96.0 and 2.97.0. A direct call to verifyPnpmInstallTree reports the two missing sentinel dependencies.

Expected: the verifier recognises the package's pnpm-owned dependency links and allows a valid installation to proceed, while retaining its ownership and integrity checks.

The verifier treats an enclosing node_modules as pnpm-owned only if it contains .pnpm or .modules.yaml, or is beneath .pnpm. The affected global-store link directory has neither marker. This looks like a layout not covered by the fix in #4235. The same checks are present on main at cab7eb7d0332ae0ebb4289d7c6bac1de666b6e40; the live reproduction was on the published package, not a clean source checkout.

Version

2.96.0 and 2.97.0

Operating system

Ubuntu 24.04.5 LTS, Linux arm64, pnpm 12.16.1

Provider and model

Not applicable.

Logs or error output
opencodex: the active pnpm package failed verification; aborting before stopping the proxy.

The verifier's failure list is sentinel dependency missing: bun and sentinel dependency missing: zod.

Screenshots and supporting files

None.

Redacted configuration

pnpm global virtual-store layout as described above.

Checks
  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.
主要言語
TypeScript
スター
16.9k
フォーク
1.3k
平均マージ
1日 4時間
マージ済み PR(30日)
773

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lidge-jun/opencodex のほかの issue

lidge-jun/opencodex の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。