Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kingma-sbw opened this issue Jul 1, 2021 · 2 comments
Labels
Bug Something isn't working Help Wanted

Comments

@kingma-sbw
Copy link

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

@kingma-sbw kingma-sbw added the Bug Something isn't working label Jul 1, 2021
@kingma-sbw kingma-sbw changed the title Installing on Windows 10 issues a event error code 1 Installing laminas-mvc-skeleton on Windows 10 issues a event error code 1 Jul 1, 2021
@kingma-sbw kingma-sbw changed the title Installing laminas-mvc-skeleton on Windows 10 issues a event error code 1 Installing laminas-mvc-skeleton on Windows 10 issues an event error code 1 Jul 1, 2021
@arueckauer
Copy link
Member

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Help Wanted
Projects
None yet
Development

No branches or pull requests

3 participants