aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/linters/src/Linters/NoFormatTrailingComma.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-23 21:34:24 +0900
committernsfisis <nsfisis@gmail.com>2026-08-23 21:34:24 +0900
commit8cf8c04ab9b5a1f5bc7a8eb3230698f07fb7c204 (patch)
tree28cb3494817e912000a30636f63002f714041fde /scripts/linters/src/Linters/NoFormatTrailingComma.php
parentb8da2bec0f4622dc761ccb9a5f686f30dcd039e7 (diff)
downloadphp-shirabe-8cf8c04ab9b5a1f5bc7a8eb3230698f07fb7c204.tar.gz
php-shirabe-8cf8c04ab9b5a1f5bc7a8eb3230698f07fb7c204.tar.zst
php-shirabe-8cf8c04ab9b5a1f5bc7a8eb3230698f07fb7c204.zip
fix(curl-downloader): flush a downloaded file before it is read back
tokio's File returns from write_all once the blocking write is queued, so the tail of the response body was still in flight when the download future resolved. The caller then renamed the file, stat'd it and copied it into the cache, so a package could land in the file cache truncated. The first run still extracted the complete file and only a later run reading that cache entry failed with "End-of-central-directory signature not found". Flushing also surfaces the last write's error, which used to be dropped. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'scripts/linters/src/Linters/NoFormatTrailingComma.php')
0 files changed, 0 insertions, 0 deletions