shorebird icon indicating copy to clipboard operation
shorebird copied to clipboard

fix: flavor detection broken when using Dart workspaces

Open felangel opened this issue 7 months ago • 3 comments

Using Dart workspaces Shorebird isn't able to correctly find/update the shorebird.yaml likely because we haven't properly tested with workspaces before.

For the time being, users can work around this by setting resolution: null in their application.

felangel avatar Jun 03 '25 20:06 felangel

Thanks to @erickzanardo for alerting us to this. To move forward we'll need to make a repro, and then possibly check it in as an e2e test. The general idea was to have a mono-repo setup with 3 packages, one (private) shared package, and two apps. The apps have different android flavors. Building both apps should work and include the right flavors (our bug today is that they seem to end up failing to build if they have different flavors suggesting that somehow workspaces is confusing our build).

eseidel avatar Jun 03 '25 20:06 eseidel

@erickzanardo made a repro: https://github.com/erickzanardo/assets_workspace_repro

felangel avatar Jun 03 '25 21:06 felangel

potentially related https://github.com/flutter/flutter/issues/169956

felangel avatar Jun 03 '25 21:06 felangel