.phar assets cannot be opened, and a failed config generation still writes .rr.yaml
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
- 70/100
Línea de trabajo
Empieza en src/Archive/Factory.php, donde la extensión .phar se asocia con PharArchive alrededor de la línea 95, luego lee PharArchive para ver cómo llama a PharData. En src/GetBinaryCommand.php, installConfig() alrededor de la línea 216 imprime el error de Generator::generate() pero aun así llega a file_put_contents; MakeConfigCommand muestra el retorno FAILURE que hay que copiar. Está terminado cuando .phar ya no llega a PharData y una generación fallida no escribe ningún .rr.yaml. Pregunta si #49 eliminará este código antes de empezar.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Two smaller defects found while covering the package with tests. Neither shows up in normal use today.
.pharassets cannot be opened.Archive\Factorymaps the.pharextension toPharArchive, which opens the file withPharData.PharDatarefuses that extension:Cannot create phar '.../rr.phar', file extension (or combination) not recognised or the directory does not exist. RoadRunner does not publish.pharassets, so this matcher can never succeed in practice..rr.yamlis written even when generation fails. InGetBinaryCommand::installConfig(), the error is printed whenGenerator::generate()throws, but execution continues tofile_put_contents($to, $config)with$configundefined. By reading the code, that would emit an undefined-variable warning and write an empty.rr.yaml.MakeConfigCommandreturnsFAILUREin the same situation. None of the bundled sections throw today, so this path is not reachable with the built-in plugins.
Additional context
Archive handling and binary installation may be replaced by DLoad in #49, in which case this code goes away.
- Lenguaje dominante
- PHP
- Estrellas
- 30
- Forks
- 15
- Merge medio
- 45 min
- PR fusionados (30 d)
- 11
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de roadrunner-php/cli
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
roadrunner-php/cli#69 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
roadrunner-php/cli#68 ·
Los mantenedores suelen responder en 1 día
-
--stability=rc is treated as devAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
roadrunner-php/cli#67 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
roadrunner-php/cli#61 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
roadrunner-php/cli#60 ·
Los mantenedores suelen responder en 1 día
Todos los issues de roadrunner-php/cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
scanaislop/aislop#476 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
components-web-app/api-components-bundle#403 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
mollie/PrestaShop#1566 ·
Los mantenedores suelen responder en 1 día