If you set the write permissions to "Allow once" in the composer hosted repository settings, then when you try to upload a new version of the package, this version cannot be used afterwards, since the zip archive with the new version is successfully created, but information about the new version is not written to json meta.
This bug is reproduced after adding support for composer v2.
This pull request makes the following changes:
If you set the write permissions to "Allow once" in the composer hosted repository settings, then when you try to upload a new version of the package, this version cannot be used afterwards, since the zip archive with the new version is successfully created, but information about the new version is not written to json meta. This bug is reproduced after adding support for composer v2.