-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Forward missing pub commands #30115
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
Forward missing pub commands #30115
Conversation
|
cc @devoncarew, I'm missing tests, I think. How do those usually work the |
|
Sample output:
|
|
@mit-mit, since we're adding so many new Also adding @jonahwilliams as a reviewer. |
|
re: testing, the existing |
cc @devoncarew, we already have an alias in place, so you can already run either |
|
cc @kevmoo, I don't fully understand the voodoo magic for analytics over in
|
| static final PubContext interactive = PubContext._(<String>['interactive']); | ||
| static final PubContext pubGet = PubContext._(<String>['get']); | ||
| static final PubContext pubUpgrade = PubContext._(<String>['upgrade']); | ||
| static final PubContext pubForward = PubContext._(<String>['forward']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be fine. This is how we track what a user ran if the command ends up hitting the server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
|
I've added tests. They are passing locally, but fail on CI. Any tips? |
|
cc @jonahwilliams any tips on the test question above? |
|
Are you running the test with pub or build_runner? CI uses pub run build_runner test |
|
I think so: |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Restarted tool_tests-macos, they timed out |
Description
Currently
fluttersupports just two pub subcommands:flutter packages get->pub getflutter packages upgrade->pub upgradeThis adds forwards for the following missing pub commands:
flutter packages downgrade->pub downgrade, the opposite of upgradeflutter packages publish->pub publishto support publishing a pluginflutter packages deps->pub depsto show package dependenciesflutter packages run->pub runto support running executables, e.g. for package:intlflutter packages cache->pub cacheto manage the pub cache contentsflutter packages version->pub versionto see the pub versionflutter packages uploader->pub uploaderto manage package uploadersflutter packages global->pub global: pub global commandsRelated Issues
Fixes #27911
Fixes #9301
Fixes #13360
Fixes #21898
Fixes #28292