When --from-lock is used, --no-dev becomes a no-op
メンテナーはふだん 1 日以内に返信
@asgrim がすでに取り組んでいます。
2026年10月16日 から。
評価
この issue はまだ評価されていません。
説明
What are you trying to do?
When you have a pie.lock file, and you use the --from-lock option, all dependencies are installed regardless of if they are in require-dev in composer.json or pie.json (manually set, as I can't see any way to install as dev with pie install.
For reference, this is where we have a number of AWS Lambda functions that share a common Dockerfile; but not all of them need the same extensions. We want to use pie.lock to simulate what was previously possible with --allow-non-interactive-project-install where we can specify in the application repository (in composer.json or similar) which extensions to enable.
What platform, and PIE version are you using?
OS: Amazon Linux release 2023.12.20260930 (Amazon Linux)
Pie:
PHP Installer for Extensions (PIE) 1.5.1, from The PHP Foundation
--
You are running PHP 8.5.9
Target PHP installation: 8.5.9 nts, on Linux/OSX/etc arm64 (from /root/.phpenv/versions/8.5.9/bin/php)
Steps to reproduce the issue
- Run
pie installincludingselectarguments for your packages - Copy generated
pie.lockto correct location on machine where extensions need to be installed - Optionally copy generated
pie.jsonto correct location, updating extensions fromrequiretorequire-devas required - Run
pie install --from lock --no-dev
What do you expect to happen?
Ideally, the requirements listed in require-dev in composer.json or pie.json are not installed; but at a minimum if the --no-dev flag is a no-op then it should warn that this is the case.
What is actually happening
No warnings given, and all normal/dev extensions are installed.
Complete logs/output
Complete error messages and/or logs, including stack traces (hint: use -v for verbose), but please redact sensitive information.
Anything else?
other information that might be helpful...
- 主要言語
- PHP
- スター
- 2k
- フォーク
- 75
- 平均マージ
- 20時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php/pie のほかの issue
-
Do not duplicate an ext in pie show output for dev versions対応中かも @asgrim が 20 日前に担当しました。 オープンenhancement maintainer investigating
メンテナーはふだん 1 日以内に返信
-
Allow building from existing sources on disk再び着手できるかも @asgrim が 31 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement maintainer investigating
php/pie#738 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Optionally remove build-only dependencies and bloat after install再び着手できるかも @asgrim が 152 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement maintainer investigating
php/pie#618 · コメント 2 件 · リアクション 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Display number of downloads/stars when results are shown再び着手できるかも @asgrim が 179 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement maintainer investigating
php/pie#592 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Bundle PIE with PHP対応中かも @asgrim が 206 日前に担当しました。 オープンenhancement maintainer investigating
php/pie#564 · コメント 2 件 · リアクション 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nextcloud/integration_openai#446 ·
-
bug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
MagnaCapax/PMSS#1101 ·
メンテナーはふだん 5 日以内に返信
-
Installation / Upgrade Platform: Docker
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信