When --from-lock is used, --no-dev becomes a no-op
Mantenedores costumam responder em até 1 dia
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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...
- Linguagem predominante
- PHP
- Estrelas
- 2.1k
- Forks
- 76
- Merge médio
- 16h 58min
- PRs com merge (30d)
- 19
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de php/pie
-
Investigate flaky ubi9/rocky e2e testsTalvez já em andamento @asgrim assumiu há 1 dia. Abertamaintainer investigating
Mantenedores costumam responder em até 1 dia
-
Do not duplicate an ext in pie show output for dev versionsTalvez já em andamento @asgrim assumiu há 24 dias. Abertaenhancement maintainer investigating
Mantenedores costumam responder em até 1 dia
-
Allow building from existing sources on diskTalvez livre de novo @asgrim assumiu há 35 dias e não há nenhum pull request aberto. Abertaenhancement maintainer investigating
php/pie#738 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Optionally remove build-only dependencies and bloat after installTalvez livre de novo @asgrim assumiu há 157 dias e não há nenhum pull request aberto. Abertaenhancement maintainer investigating
php/pie#618 · 2 comentários · 5 reações · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Display number of downloads/stars when results are shownTalvez livre de novo @asgrim assumiu há 183 dias e não há nenhum pull request aberto. Abertaenhancement maintainer investigating
php/pie#592 · 1 comentário · 1 reação · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Issues semelhantes
-
type/bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Mantenedores costumam responder em até 1 dia
-
needs-triage Technical TODO
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 2 dias
-
Security: Vulnerable PHP version (CVE-2026-109618 / CVE-2026-109619) in current Docker imagesAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
MISP/misp-docker#478 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
glpi-project/glpi#26045 ·
Mantenedores costumam responder em até 1 dia
-
sync-en
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia