Skip to content

Commit

Permalink
[eas-cli] Disallow republishing an update that is being rolled-out
Browse files Browse the repository at this point in the history
  • Loading branch information
wschurman committed Sep 26, 2024
1 parent fba26e6 commit 86d4cbf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/eas-cli/src/update/republish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 86d4cbf

Please sign in to comment.