Skip to content

Please fix dart pub global activate PROG to generate scripts that use dart pub instead of pub #2981

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

Closed
RandalSchwartz opened this issue Apr 20, 2021 · 4 comments

Comments

@RandalSchwartz
Copy link

For all the reasons I've mentioned about flutter pub global activate in flutter/flutter#79131, the same is true for dart pub global activate. It might even be the same code.

As pub is being deprecated, replaced with dart pub or flutter pub, this is beginning to affect more people. Most people are using the dart-sdk that is within their flutter-sdk, and adding only the flutter bin to their path, and not the legacy dart-sdk bin into their path. But dart pub global activate creates shell scripts that fall back to pub run if the SDK version has changed. But there's no more pub, so this requires a meticulous re-creating of everything in dart pub global list or face broken apps.

If the flutter fix is fixing the same code, please coordinate. But please make this soon. This breaks tools like dcli as well.

@mkustermann mkustermann transferred this issue from dart-lang/sdk Apr 28, 2021
@mkustermann
Copy link
Member

/cc @jonasfj

@RandalSchwartz
Copy link
Author

Can we please bump this a bit? It's increasingly affecting new installations.

@jonasfj
Copy link
Member

jonasfj commented May 19, 2021

Filed #3002

@jonasfj
Copy link
Member

jonasfj commented May 25, 2021

Fixed, should ship with Dart 2.14

@jonasfj jonasfj closed this as completed May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants