From 86d4cbfa67cffdda3402a1dc2b9a1a089bee3b6d Mon Sep 17 00:00:00 2001 From: Will Schurman Date: Thu, 26 Sep 2024 09:50:02 -0700 Subject: [PATCH] [eas-cli] Disallow republishing an update that is being rolled-out --- packages/eas-cli/src/update/republish.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/eas-cli/src/update/republish.ts b/packages/eas-cli/src/update/republish.ts index 2009380ace..39cb68d0b4 100644 --- a/packages/eas-cli/src/update/republish.ts +++ b/packages/eas-cli/src/update/republish.ts @@ -69,6 +69,11 @@ export async function republishAsync({ 'All updates must either be roll back to embedded updates or not' ); + assert( + !updatesToPublish.some(u => !!u.rolloutControlUpdate), + 'Cannot republish an update that is being rolled-out' + ); + const { runtimeVersion } = arbitraryUpdate; // If codesigning was created for the original update, we need to add it to the republish.