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

get-binary exits with 0 when the existing binary is kept

Fechada Para iniciantes
#69 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
82/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
php
Domínio
cli

Direção de pesquisa

Comece em GetBinaryCommand::execute() e installBinary(), que a issue menciona: execute() só retorna 1 quando installBinary() retorna null, mas o arquivo ignorado também é retornado. Verifique o teste de aceitação ExistingBinaryTest::failsWhenBinaryIsKept referenciado em #66, se ele estiver presente. Está concluído quando manter um binário existente encerra com 1 e exibe o aviso RoadRunner has not been installed.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug

Description

When the binary already exists and is not overwritten — the overwrite question is answered "no", or the command runs with --no-interaction — rr get keeps the old file (correct) but exits with 0 and prints [OK] Your project is now ready. Scripts cannot tell that nothing was installed.

GetBinaryCommand::execute() returns 1 with RoadRunner has not been installed only when installBinary() returns null, but installBinary() returns the skipped file as well.

Expected: exit code 1 and the RoadRunner has not been installed warning when the existing binary is kept.

Steps to reproduce

  1. Put any file named rr into an empty directory.
  2. Run rr get --no-config -n there.
  3. The file is unchanged, the exit code is 0.

Additional context

Found by the acceptance tests in #66 (ExistingBinaryTest::failsWhenBinaryIsKept). The DLoad-based implementation in #49 already returns 1 in this case.

Linguagem predominante
PHP
Estrelas
30
Forks
15
Merge médio
9h 37min
PRs com merge (30d)
16

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 roadrunner-php/cli

Todas as issues de roadrunner-php/cli

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.