PNPM deployments that depend on workspace packages

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

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
57/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, node.js
領域
build-system

調査の方向性

Start by locating the staging path that runs pnpm rebuild --recursive when vendored node_modules are detected. Add an app-level opt-out while keeping rebuilding enabled by default, document the choice, and test both default and opt-out behavior.

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

説明

When a Node.js app includes vendored node_modules, the buildpack detects it and runs pnpm rebuild --recursive during staging. This is useful for rebuilding native modules, but it fails for deployments containing injected workspace packages whose source directories aren’t included in the uploaded app.

We deploy a pnpm workspace package using pnpm deploy --config.inject-workspace-packages=true. The resulting lockfile references a sibling workspace package as a local directory from the CI checkout. During staging, that checkout path doesn’t exist in the CF container, and pnpm rebuild fails while trying to compute the package packlist:

ERR_PNPM_FS_PACKLIST_IO
I/O error while computing packlist for /home/runner/work/ai-sdk-js/ai-sdk-js/sample-code:
No such file or directory

Environment: Node.js buildpack 1.9.7, cflinuxfs5, Node 24.22.1, pnpm 12.15.0.

Could the buildpack provide a documented, app-level opt-out for rebuilding vendored dependencies while keeping the current behavior as the default? Skipping rebuild should be an explicit choice, since native modules may need rebuilding for the target runtime.

Related: https://github.com/cloudfoundry/nodejs-buildpack/issues/978, which also causes issues.

主要言語
Go
スター
174
フォーク
390
平均マージ
15時間 51分
マージ済み PR(30日)
21

環境構築

はじめの一歩

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

cloudfoundry/nodejs-buildpack のほかの issue

cloudfoundry/nodejs-buildpack の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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