Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): ENOENT during asset publishing (aws#25869)
There was still a TOCTOU error in the file asset publishing, which could lead to `ENOENT: no such file or directory` when assets were being published in parallel. The whole `if (fileExists) { delete; }` logic was actually not necessary, as `fs.rename` will atomically overwrite existing files already, so we can just call it directly. Closes aws#25293. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information