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
DDEV v1.17.5 composer 2.1.* doesn't set executable bit of phar files (deployer/dist package) #3044
Comments
@blankse I just tried this with your composer.json and didn't have any trouble. Could you please execute this command in your project directory in wsl2 and show the results?
My only suspicion is that you don't have your project on a native WSL2 partition (like /home), which is absolutely necessary for performance reasons. Here's what I see:
And...
|
@rfay I am in /home and in WSL the file permission of the vendor/bin/dep proxy file is correct.
The permission from the target vendor/deployer/dist/dep is wrong:
Edit: Did you test with the current composer version? I think only composer 2.1.x is affected. |
@rfay Okay is not a fault of ddev. Doesn't work without DDEV either. My local composer was 2.0.x |
No, ddev on my WSL2 was a little older and had composer 2.0.12. After upgrading I confirm the same results that you have. Note that you can set Please open an issue with composer or deployer/dist and put the link here. (It doesn't look like this is fixed in 2.1.2 either) |
I note that this doesn't seem to be a general problem. |
@rfay It only affected PHAR files. Are drush a PHAR file? |
@rfay I open an issue here: composer/composer#9961 |
I just found that :) Looks like you already knew all about this. Note that there shouldn't be any difference in behavior between WSL and general Linux. Composer doesn't know anything about WSL. |
@rfay Composer 2.1 detects WSL by looking for "Microsoft" in /proc/version and make the same as on windows... |
Note that I do find that the permissions come out correct on a native Ubuntu 20.04 machine and your composer.json using native composer 2.1.2 (not ddev) |
@rfay In the web container the /proc/version file contains also microsoft. So composer also use the WSL behavior.
Yes in a native Ubuntu Composer use the symlink behavior instead of the proxy file. So the permission is set correct to the target file. |
And now I see https://github.com/composer/composer/releases/tag/2.1.3 with a fix for this I guess. |
Describe the bug
I use ddev with WSL.
When I use following composer.json and execute an composer without ddev
composer install:
I can use the PHAR binary with:
vendor/bin/dep
When I use it with ddev:
I get following error:
The text was updated successfully, but these errors were encountered: