When --from-lock is used, --no-dev becomes a no-op
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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...
- Vorherrschende Sprache
- PHP
- Sterne
- 2k
- Forks
- 75
- Ø Merge
- 20 Std.
- Gemergte PRs (30 T.)
- 16
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus php/pie
-
Do not duplicate an ext in pie show output for dev versionsEvtl. vergeben @asgrim hat das vor 22 Tagen übernommen. Offenenhancement maintainer investigating
php/pie#746 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Allow building from existing sources on diskEvtl. wieder frei @asgrim hat das vor 33 Tagen übernommen, und es ist kein Pull Request offen. Offenenhancement maintainer investigating
php/pie#738 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Optionally remove build-only dependencies and bloat after installEvtl. wieder frei @asgrim hat das vor 154 Tagen übernommen, und es ist kein Pull Request offen. Offenenhancement maintainer investigating
php/pie#618 · 2 Kommentare · 4 Reaktionen · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Display number of downloads/stars when results are shownEvtl. wieder frei @asgrim hat das vor 181 Tagen übernommen, und es ist kein Pull Request offen. Offenenhancement maintainer investigating
php/pie#592 · 1 Kommentar · 1 Reaktion · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Support Laravel Herd, where extension_dir does not exist and absolute paths are used in INIEvtl. wieder frei @asgrim hat das vor 257 Tagen übernommen, und es ist kein Pull Request offen. Offenmaintainer investigating
php/pie#504 · 7 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
needs-triage Platform(Default)
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 2 Tagen
-
sync-en
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Sync EN] Document Error thrown by shm_* functions on a detached segment (#5975)Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offensync-en
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 3 Tagen
-
Перевод устарел
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100