-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: choose newest xcarchive in ios release #2577
Conversation
Co-authored-by: Eric Seidel <eric@shorebird.dev>
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
// This still could grab the wrong ipa, if multiple `flutter` commands | ||
// are running in parallel or the clock is/was broken on the machine. | ||
// If either of those occurs in the wild we can check the contents of | ||
// the xcarchives, but this should be good enough for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bryanoltman
Isn't this crucial?
As the bug in the shorebird release
itself, this will break patching too not just previewing. Developer will get a confirmation of the patch successfully published but it'll never be installed for app users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is indeed crucial. We believe that it is a "good enough" fix, in that it will solve the problem in 99.9% of cases, except those outlined in the comment above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood. Thanks!
Description
Updates the ArtifactManager's
getXcarchive
function to return the most recently edited xcarchive rather than the first that appears inDirectory.listSync
Fixes #2575 and #2549
Type of Change