Support globally activating local packages #20147
Labels
closed-invalid
Closed as we don't believe the reported issue is generally actionable
type-enhancement
A request for a change that isn't a bug
Milestone
Right now, "pub global activate" only supports hosted packages. This means you can't globally activate a package that hasn't been published. That makes it really hard to develop packages intended to be globally activated: you can't test them until after you've published them.
To solve that, you should be able to activate a local package. I'm thinking, from within the root directory of a package, you can do:
$ pub global activate --current
This will make that package globally available. It will make that a live link: any changes to the current package will be immediately reflected by pub global run. (In order to get new executables on your PATH, you may have to reinstall the package, though.)
The text was updated successfully, but these errors were encountered: