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

Composer2 under Windows 10 fails installing packages in WLS2 paths #9993

Closed
Ziggizag opened this issue Jul 9, 2021 · 4 comments · Fixed by #9995
Closed

Composer2 under Windows 10 fails installing packages in WLS2 paths #9993

Ziggizag opened this issue Jul 9, 2021 · 4 comments · Fixed by #9995
Labels
Milestone

Comments

@Ziggizag
Copy link

Ziggizag commented Jul 9, 2021

This screenshot is self-explanatory:

https://i.imgur.com/u7OhTVD.png

Briefly:

file_put_contents(/wsl$/Ubuntu-20.04/home/ziggi/www/mcov/vendor/composer/installed.php): Failed to open stream: No such file or directory

Evidently, it looks like file_put_contents command has problem with WLS2 (Windows Subsystem for Linux) UNC paths.

Please notice - the Composer installation here is Windows installation not Linux! If I run Composer directly from Ubuntu subsystem, it is fine, but here I specifically mean cross-OS approach. Simply speaking - this problem makes life harder for WLS2 users who employ IDE run under Windows to develop for Linux.

@Seldaek
Copy link
Member

Seldaek commented Jul 9, 2021

Which version are you running? Please try again after running composer self-update. I believe this was fixed but maybe we missed a spot so if latest version doesn't work do tell.

@Ziggizag
Copy link
Author

Ziggizag commented Jul 9, 2021

@Seldaek Hi - Thank you for prompt feedback!

This is the latest version - installed just today: Composer version 2.1.3 2021-06-09 16:31:20

@Seldaek Seldaek added this to the 2.1 milestone Jul 12, 2021
@Seldaek Seldaek added the Bug label Jul 12, 2021
Seldaek added a commit to Seldaek/composer that referenced this issue Jul 12, 2021
Seldaek added a commit to Seldaek/composer that referenced this issue Jul 12, 2021
Seldaek added a commit to Seldaek/composer that referenced this issue Jul 12, 2021
Seldaek added a commit to Seldaek/composer that referenced this issue Jul 12, 2021
@Seldaek
Copy link
Member

Seldaek commented Jul 12, 2021

Ok thanks, I could reproduce and fixed a few issues related to WSL paths. I'm hoping that's all of it but if you spot more please report.

@Seldaek
Copy link
Member

Seldaek commented Jul 12, 2021

FYI you can try the fix already with composer self-update --snapshot

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

Successfully merging a pull request may close this issue.

2 participants