Closed VelziDM closed 3 months ago
Hey there!
where the file is created empty and cannot be modified
This prevents Composer from creating the autoloader file.
Composer is responsible for writing those files. It sounds like you might be experiencing issues related to your local filesystem. Unfortunately we don't provide help for Composer or macOS filesystem problems (since they're beyond the scope of this project), but I'd recommend trying to delete your entire vendor
directory and re-running composer install
. If that fails, double-check your file permissions and ownership on your project directory, or seek help from any other knowledgeable macOS users.
I hope you're able to figure this out!
Version(s) affected
2.4.4 and all after
Description
Issue Title: Permission Issues with Composer Package Installation on macOS Sonoma(Version 14.5)
Description:
After updating to the latest version of CommonMark (commit
50bd4dce0d53e1b3b51a153fc2e44a7dc3f7ee5b
), file before commit I'm experiencing permission issues with Composer package installation on macOS.Issue Summary:
When installing a Composer package, my colleagues and I are encountering an issue where the file is created empty and cannot be modified, even when using
sudo
. This prevents Composer from creating the autoloader file.How to reproduce
Scenario 1.
composer install
orcomposer update
).sudo
. screenshot 1 screenshot 2Scenario 2.
sudo
. screenshot 1 screenshot 2Expected Behavior:
The Composer package should be installed successfully, creating the required files with proper permissions.
Actual Behavior:
The file is created empty and cannot be modified, preventing Composer from creating the autoloader file.
Possible solution
Downgrade to "league/commonmark": "2.4.3", helps.
Additional context
Not reproduced on windows
Did this project help you today? Did it make you happy in any way?
Someday we will be cool as you are)