Closed fritzmg closed 2 years ago
any chance this PR would be merged ?
@tfritsch-km the project does not seem to be maintained anymore. Also I should still change the tests, so that this change is covered.
@tfritsch-km my fork now contains a branch that includes all windows fixes so far: https://github.com/fritzmg/Magallanes/tree/windows-fixes
You could add that as a repository in your global composer.json
and then require "andres-montanez/magallanes": "dev-windows-fixes"
.
{
"require": {
"andres-montanez/magallanes": "dev-windows-fixes"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/fritzmg/Magallanes"
}
]
}
the alternatives are:
exec('whoami')
which i totally do not recommend for the high permissions requirementgetEnvOption
2nd argument lazy loaded (that value is not always really needed), but this change requires some workbtw i honestly do not understand why the coverage decrease of the 0.1%. imo under windows it throws an exception which means as now it is not cover 100% all the cases. could you please be so gentle and explicit share what cases do not meet the requirements?
Hi @iannacone , the coverage decreases because there is no test entering inside the if added for the feature. Magallanes has never been too kind with windows, however, I will take a look at this in the next weeks to improve compatibility.
Take care!
Thanks @fritzmg , this improvement will be available on v5!
With one other adjustment (see https://github.com/andres-montanez/Magallanes/issues/306#issuecomment-419921293) Magallanes seems to work without an issue under Windows, at least under the Windows Git Bash.
The only change I had to make in the source of Magallanes is to provide this fallback for
posix_getpwuid
, which is of course not present on the Windows platform.