Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto Apto para principiantes
#69 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
php
Área
cli

Línea de trabajo

Empieza en GetBinaryCommand::execute() y installBinary(), que el issue menciona: execute() solo devuelve 1 cuando installBinary() devuelve null, pero el archivo omitido también se devuelve. Revisa la prueba de aceptación ExistingBinaryTest::failsWhenBinaryIsKept referenciada en #66 si está presente. Está terminado cuando mantener un binario existente sale con 1 e imprime la advertencia RoadRunner has not been installed.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
PHP
Estrellas
30
Forks
15
Merge medio
45 min
PR fusionados (30 d)
11

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de roadrunner-php/cli

Todos los issues de roadrunner-php/cli

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.