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

Support global activate from a different pub server #2039

Closed
evanweible-wf opened this issue Jan 30, 2019 · 2 comments
Closed

Support global activate from a different pub server #2039

evanweible-wf opened this issue Jan 30, 2019 · 2 comments
Labels
type-enhancement A request for a change that isn't a bug

Comments

@evanweible-wf
Copy link
Contributor

pub global activate already supports hosted, path, and git sources, but the hosted option defaults to the main pub server with no way to activate from a separate server. We have a private pub server for our internal packages and it would be nice to be able to globally activate some of them using the standard version constraints.

It looks like this idea was at least considered previously in this issue: #1044

pub global activate foo ">=1.0 <2.0" --server http://...

Is there any reason not to support this? And if not, would it be something that you would accept a PR for? Looking at the implementation of the global activate command, it looks like it might require a separate cache for each pub server, but otherwise seems to be straightforward.

@evanweible-wf
Copy link
Contributor Author

I've put up a proposed solution here: #2041

@jonasfj jonasfj added the type-enhancement A request for a change that isn't a bug label Feb 4, 2019
@kevmoo
Copy link
Member

kevmoo commented Feb 26, 2019

Fixed in 980fc94

Tracking issue to include this in an SDK - dart-lang/sdk#36026

@kevmoo kevmoo closed this as completed Feb 26, 2019
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