Skip to content
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

Merged
merged 7 commits into from
Oct 24, 2024
Merged

Conversation

bryanoltman
Copy link
Contributor

Description

Updates the ArtifactManager's getXcarchive function to return the most recently edited xcarchive rather than the first that appears in Directory.listSync

Fixes #2575 and #2549

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore
  • 🧪 Tests

Co-authored-by: Eric Seidel <eric@shorebird.dev>
@bryanoltman bryanoltman enabled auto-merge (squash) October 24, 2024 19:28
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@bryanoltman bryanoltman merged commit 05878d9 into main Oct 24, 2024
11 checks passed
@bryanoltman bryanoltman deleted the bo/release-xcarchive branch October 24, 2024 20:19
// 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.

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.

Copy link
Contributor Author

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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: shorebird taking build info from the wrong xcarchive for iOS release
4 participants