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 authored Sep 27, 2024
1 parent ffa2f03 commit 6823e4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ This is the log of notable changes to EAS CLI and related packages.

### 🐛 Bug fixes

- Disallow republishing an update that is being rolled-out. ([#2602](https://github.com/expo/eas-cli/pull/2602) by [@wschurman](https://github.com/wschurman))

### 🧹 Chores

- Implement new `worker` deploy API flow. ([#2601](https://github.com/expo/eas-cli/pull/2601) by [@kitten](https://github.com/kitten)))
Expand Down
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. Either complete the update rollout and then republish or publish a new rollout update.'
);

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 6823e4f

Please sign in to comment.