-
Notifications
You must be signed in to change notification settings - Fork 229
What is the best way to tell whether pub get
needs running for a project?
#1678
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
Comments
I guess one thing is to check if the |
Ideally I'd like to avoid adding my own logic for this (to avoid it not matching, or needing maintaining) =) |
For now we're chekcing if |
@DanTup |
I don't think anything specific has been done here, but there's a similar issue at #1447 that's a bit more specific and has more recent discussion so I don't think we need both. |
I'd like to detect when a user opens a project in Dart Code that is missing packages (eg. it's a fresh clone and they've never run
pub get
) and prompt them, with an easy button to do it (since otherwise they'll get a screenfull of errors).What's the best way to do this? I see that
pub get
has a--dry-run
option, but I don't know if it's safe to use. Eg.:The text was updated successfully, but these errors were encountered: