Skip to content

feat: add doctor check for FLUTTER_ROOT override#3406

Open
eseidel wants to merge 3 commits intomainfrom
es/flutter_root
Open

feat: add doctor check for FLUTTER_ROOT override#3406
eseidel wants to merge 3 commits intomainfrom
es/flutter_root

Conversation

@eseidel
Copy link
Copy Markdown
Contributor

@eseidel eseidel commented Nov 26, 2025

This should cause shorebird doctor and shorebird * ios to warn about FLUTTER_ROOT overrides which are believed to cause #2788?

@eseidel
Copy link
Copy Markdown
Contributor Author

eseidel commented Nov 26, 2025

This still needs more tests to land.

@eseidel
Copy link
Copy Markdown
Contributor Author

eseidel commented Nov 26, 2025

I'm not sure why we didn't get coverage info. 🤔 https://app.codecov.io/gh/shorebirdtech/shorebird/pull/3406

@eseidel eseidel requested a review from bryanoltman November 26, 2025 01:06
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@eseidel
Copy link
Copy Markdown
Contributor Author

eseidel commented Dec 2, 2025

This is one of multiple things that could cause #2788 I believe. I'm still not sure we should ship this particular fix (since trying to replicate the direct cause I got a different error), but maybe we should broaden this fix to detect any FLUTTER_* or a known set of FLUTTER_ environment variables set in the pbxproj directly, since all of those cases would be wrong.

One of the gen_snapshot crashes I helped with last week was overriding the FLUTTER_ROOT within the xcode_backend.sh build script and just happened to be working locally but was (understandably) then failing with shorebird.

I wish I had a more systemic fix (like detecting somehow when the backend scripts arent matching), but I don't know how to write that fix. Maybe opening a side socket in a known location and having the backend look for that socket and confirm versions or sometihng 🤷

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.

2 participants