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

Packages with dependency on Flutter SDK cannot be globally activated #4001

Open
jonasfj opened this issue Aug 28, 2023 · 1 comment
Open
Labels
type-enhancement A request for a change that isn't a bug

Comments

@jonasfj
Copy link
Member

jonasfj commented Aug 28, 2023

It'll simply say:

devtools_extensions 0.0.3-wip requires the Flutter SDK, which is unsupported for global executables.

Example: flutter/devtools#6259


Maybe this is more of a feature request than a bug really. But it explains why people might need to make _cli packages in some cases.

@kenzieschmoll
Copy link

If the activation intentionally fails, then maybe the flutter pub global activate output should warn of this. Based on this, it appears that the activation has occurred successfully:

 ~/ flutter pub global activate --source path ~/develop/devtools/packages/devtools_extensions/
Resolving dependencies in /Users/kenzieschmoll/develop/devtools/packages/devtools_extensions/... 
! devtools_app_shared 0.0.1 from path develop/devtools/packages/devtools_app_shared (overridden)
! devtools_shared 3.0.0 from path develop/devtools/packages/devtools_shared (overridden)
  material_color_utilities 0.5.0 (0.8.0 available)
Got dependencies in /Users/kenzieschmoll/develop/devtools/packages/devtools_extensions/!
Package devtools_extensions is currently active at path "/Users/kenzieschmoll/develop/devtools/packages/devtools_extensions".
Activated devtools_extensions 0.0.3-wip at path "/Users/kenzieschmoll/develop/devtools/packages/devtools_extensions".

@sigurdm sigurdm added type-enhancement A request for a change that isn't a bug and removed feature-request labels Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

3 participants