cdklabs/aws-delivlib

delivlib: potential race condition in npm publisher

Closed this issue · 2 comments

eladb commented

The npm publisher (and any other publisher for that matter) should make sure to be resiliant to the situation where the check for version existence determines that a version was not published but then when you publish it already exists. This could happen if between the time of the check and the time of the actual publishing, the version became available.

In npm this results in the following error:

You cannot publish over the previously published versions: 0.22.0

The publisher should not fail in that case.

This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon.

Closing this issue as it hasn't seen activity for a while. Please add a comment @mentioning a maintainer to reopen.