-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Composer doesn't gracefully handle config.json being unreadable #11077
Comments
Looks like Factory validates the file before creating a JsonConfigSource - if the file is manipulated or read later it gets checked for readability but this won't happen at the early Factory stage https://github.com/composer/composer/blame/main/src/Composer/Config/JsonConfigSource.php#L217 |
The commit by Seldaek used is_readable instead of Filesystem::isReadable and will not work on network shares (SMB). see #8231. Please update to Filesystem::isReadable and verify again, thank you! |
My
composer.json
:N/A
Output of
composer diagnose
:When I run this command:
I get the following output:
Same as above
And I expected this to happen:
Warn about being unable to read $COMPOSER_HOME/config.json
Reproducer
The text was updated successfully, but these errors were encountered: