Composer package installation: duplicate writes during retry cycles
Composer implements a retry mechanism for failed package downloads, governed by the COMPOSER_MAX_RETRIES environment variable and the --prefer-dist or --prefer-source flags. This process is designed to ensure package availability despite transient network instability. A potential conflict exists when a download is interrupted after a partial write to the fil