Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

When --from-lock is used, --no-dev becomes a no-op

Aberta
#778 2 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@asgrim já está trabalhando nisso.

Desde 16/10/2026.

  • #779 de @asgrim — aberto

Avaliação

Esta issue ainda não foi avaliada.

Descrição

maintainer investigating

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

  1. Run pie install including select arguments for your packages
  2. Copy generated pie.lock to correct location on machine where extensions need to be installed
  3. Optionally copy generated pie.json to correct location, updating extensions from require to require-dev as required
  4. 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

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de php/pie

Todas as issues de php/pie

Issues semelhantes

Mais issues de PHP

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.