-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Labels
bugSomething isn't working as expectedSomething isn't working as expectedp2Important issues not at the top of the work listImportant issues not at the top of the work list
Description
Description
dart_frog build
fails when run in a pub workspace package.
The issue seems to be that a pub workspace will only generate one global pbspec.lock
file for the entire repository. Therefore, the post gen hook of the dart_frog_prod_server
mason module fails.
dart_frog build
✓ Installing dependencies (3.4s)
✓ Bundling sources (0.2s)
An exception occurred while executing hook:REDACTED/.mason-cache/bundled/dart_frog_prod_server_0.1.0+1_8f9e5f00a1ad5ac6fe64824ffeb33163fed9b0ba/hooks/pre_gen.dart.
Error: PathNotFoundException: Cannot open file, path = 'REDACTED/packages/api/pubspec.lock' (OS Error: No such file or directory, errno = 2)
Steps To Reproduce
- create a dart pub workspace mono repo
cd packages/api
(the package our server code is living in)dart_frog build
⚡
Expected Behavior
dart_frog manages to build the server code.
Additional Context
For reference, pub workspaces are the new dart native mono repo management, which is currently in preview since dart 3.5.
More info at: https://flutter.dev/go/pub-workspace
YumNumm, danielgorka, marcossevilla and craiglabenz
Metadata
Metadata
Assignees
Labels
bugSomething isn't working as expectedSomething isn't working as expectedp2Important issues not at the top of the work listImportant issues not at the top of the work list