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
BUG: Windows 10 - Composer post-update-cmd fails #3087
Comments
I am glad someone else reported it because I was going crazy. I have tried to investigate this for hours but am still looking for a solution. I use Windows 11 with Laragon 6, Neos (latest) and I am unable to install Neos. After hours of debug and testing, this is my conclusion.
Result:
Now, the pathName here are absolute paths, is this expected by Neos? This is the path that is given to
This could also be done in other places, maybe even in Bootstrap.php, but I'm not sure this would be the right solution in all places.
Now I'll go to sleep 😂😂 I will think about it more |
Hi @eartahhj and @icpb it great to see you’re not giving up easily ❤️ Windows is in some cases sadly a bit special and always a little burden to maintain ^^ But nevertheless I’d like to help you out. I know the method you’re talking about. Maybe we can arrange a call and pair debug it a bit ;) you can also reach me on the neos slack @ Marc Henry Schultz ;) |
We actually found a fix in #3088 |
Is there an existing issue for this?
Current Behavior
Windows 10 with Neos 8: "composer update" fails with "No composer manifest file found at ..." during the execution of the flow post update/install scripts. This is caused by wrong pathes for certain packages generated in ComposerUtility and PackageFactory: these wrong pathes are of the form: "X:\project\packages\X:\Project\packages\Application\packageY."
Expected Behavior
Normal executaion.
Steps To Reproduce
No response
Environment
Anything else?
The problem is caused by the method collectPackageManifestData of packageManager. It returns
On the problematic system both $this->packagesBasePath and $packageState['packagePath'] are correct absulute pathes (but using different delimiters / and \), concatenatition then leads to the exception. I didn't look up how the pathes are set. After adjusting the function above "composer update" worked as usual.
The text was updated successfully, but these errors were encountered: