laminas / laminas-mvc-skeleton

Skeleton application for creating laminas-mvc based projects.
https://docs.laminas.dev/mvc/
BSD 3-Clause "New" or "Revised" License
171 stars 63 forks source link

Installing laminas-mvc-skeleton on Windows 10 issues an event error code 1 #42

Open kingma-sbw opened 3 years ago

kingma-sbw commented 3 years ago

Bug Report

Q A
Version(s) 2.0.x-dev 2b79987

Summary

Install laminas-mvc-skeleton with the option minimal on Windows 10 results in an script error near the end.

Current behavior

An error is reported: Script php -r 'if (file_exists("bin/remove-package-artifacts.php")) include "bin/remove-package-artifacts.php";' handling the post-create-project-cmd event returned with error code 1

How to reproduce

composer create-project -s dev laminas/laminas-mvc-skeleton path/to/install selecting Y for minimal install

Expected behavior

arueckauer commented 2 years ago

This error is reproducable on Windows 10 for all versions starting from 1.0.0 and caused by Windows ignoring double quotes in passing a string argument in the composer post-create-project-cmd script.

WSL Ubuntu PowerShell Windows

A possible solution could be moving the various post-create-project-cmd scripts into one or more callbacks (PHP class).

For a manual workaroung execute bin/remove-package-artifacts.php and delete CHANGELOG.md.

froschdesign commented 2 years ago

A possible solution could be moving the various post-create-project-cmd scripts into one or more callbacks (PHP class).

Which should then also be deleted.