You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running my_generator.dart fails since Mason is unable to install dependencies for hook:
dart lib/my_generator.dart
# Unable to install dependencies for hook [...]
Note: Optionally, you can simply bundle my_brick and unbundle to see that the path dependencies not within the hook are not bundled. Performing a dart pub get on the unbundled hooks will also fail.
Expected behaviour
As a developer, I expect to be able to use a bundle in MasonBundle even if the hook has a path dependency of a package that is not within the hook.
Description
When bundling, a hook can't depend on a dependency which is sourced from a path that is not within the hook's path.
Example
If you have the following directory structure, you will be unable to completly bundle the brick:
Reproductive steps
my_package
as a path dependency tomy_brick
's hooks (from ./my_brick/hooks):dart pub add 'my_package:{"path":"../../my_package"}'
my_brick
(from my_generator):my_generator.dart
fails since Mason is unable to install dependencies for hook:dart lib/my_generator.dart # Unable to install dependencies for hook [...]
Note: Optionally, you can simply bundle
my_brick
and unbundle to see that the path dependencies not within the hook are not bundled. Performing adart pub get
on the unbundled hooks will also fail.Expected behaviour
As a developer, I expect to be able to use a bundle in
MasonBundle
even if the hook has a path dependency of a package that is not within the hook.Additional Context
The text was updated successfully, but these errors were encountered: