-
Notifications
You must be signed in to change notification settings - Fork 229
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
Incomplete Deprecation of standalone pub command(pub global activate does not work) #3066
Comments
For now going in and changing the sh files likewise fixes things for me |
Would it not be sufficient to use |
cc @jonasfj |
@mit-mit I don't have context on why standalone pub was deprecated. IF THEN ALSO All said, I have much less context/qualification to provide an answer to what would work. I can just test the scenarios and let you know what works. |
For me as long as |
There is background in dart-lang/sdk#46100. |
@sigurdm it looks like this might already have been fixed (at least I'm not able to repro with 2.14)? |
Yeah - seems it was fixed by: #3002 ! |
Environment
Problem
as we know that standalone pub command is deprecated
and that snap install on Ubuntu does not expose the pub command at all, we have to access the command via either
still when we do a
on a dart tool, we can not run the tool from commandline and we get error as:
The content of
/home/raveesh/snap/flutter/common/flutter/.pub-cache/bin/highsupply
is:The generated sh file is trying to use the deprecated pub command instead of the respective dart or flutter pub command.
Going in the file and manually changing the line to:
solves the issue.
(changing it to
flutter pub global run...
does not, because the global activate was called using dart pub global activate and it will result in error saying no active package for ...)Expected behavior
1.
dart pub global activate --source path .
should generate:2
flutter pub global activate --source path .
should generate:in $pub_cache
Actual behavior
1.
dart pub global activate --source path .
generates:2.
dart pub global activate --source path .
generates:The text was updated successfully, but these errors were encountered: