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

Env: `/.composer does not exist and could not be created #55707

Closed
swissspidy opened this issue Oct 30, 2023 · 1 comment
Closed

Env: `/.composer does not exist and could not be created #55707

swissspidy opened this issue Oct 30, 2023 · 1 comment
Labels
[Tool] Env /packages/env [Type] Bug An existing feature does not function as intended

Comments

@swissspidy
Copy link
Member

Description

Using the latest wp-env (8.10.0 at the time of writing) I am getting the following errors on start:

#45 [cli 14/14] RUN composer global require --dev phpunit/phpunit:"^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"
#45 0.146 
#45 0.147 In Filesystem.php line 260:
#45 0.147                                                        
#45 0.147   /.composer does not exist and could not be created:  
#45 0.147                                                        
#45 0.147 
#45 0.147 global <command-name> [<args>...]
#45 0.147 
#45 ERROR: process "/bin/sh -c composer global require --dev phpunit/phpunit:\"^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0\"" did not complete successfully: exit code: 1
------
 > [tests-cli 14/14] RUN composer global require --dev phpunit/phpunit:"^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0":
0.146 
0.147 In Filesystem.php line 260:
0.147                                                        
0.147   /.composer does not exist and could not be created:  
0.147                                                        
0.147 
0.147 global <command-name> [<args>...]
0.147 
------
failed to solve: process "/bin/sh -c composer global require --dev phpunit/phpunit:\"^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0\"" did not complete successfully: exit code: 1

Previously / related:

Step-by-step reproduction instructions

See above

Screenshots, screen recording, code snippet

No response

Environment info

  • macOS 14.1 (Sonoma)
  • npm 10 / Node 20
  • wp-env 8.10.0

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@swissspidy swissspidy added [Type] Bug An existing feature does not function as intended [Tool] Env /packages/env labels Oct 30, 2023
@swissspidy
Copy link
Member Author

Duplicate of #51419

I just couldn‘t find it again 🤦‍♂️

@swissspidy swissspidy closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Tool] Env /packages/env [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant