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

Go straight to binary instead of relying on composer parser #55

Merged
merged 1 commit into from
Jul 20, 2018
Merged

Go straight to binary instead of relying on composer parser #55

merged 1 commit into from
Jul 20, 2018

Conversation

deleugpn
Copy link
Contributor

@deleugpn deleugpn commented Jul 20, 2018

Hey guys, sorry I'm a little late on my promise, but here is the fix for #35

When I was fixing this for Laravel Dusk, I learned that relying on vendor/bin was the root of the problem (as seen here laravel/dusk#244).

Just as a quick context for this, the problem happens because composer is smart enough to generate OS-specific binaries at /vendor/bin. Whenever we use a Virtual Machine from Windows to Linux, although the OS is Linux, the Filesystem is still NTFS and Composer does not work really well when guessing the wrapper for the binary.
By going straight to the source (PHP file), we don't rely on composer parser and any platform knows how to execute php files.

NOTICE: Unfortunately I did not have time to test this on a Windows machine, if @Braunson or @MaxwellHutt could give a hand on this, it would be awesome.

@ghost
Copy link

ghost commented Jul 20, 2018

It works for me on Windows in Homestead. @deleugpn But it wouldn't run anymore, if you would work with Xampp on Windows.

@nunomaduro nunomaduro merged commit 434eda0 into larastan:master Jul 20, 2018
@nunomaduro
Copy link
Collaborator

Thanks! 👍

Looks like the only issue now is that doesn't work with Xampp on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants