Danny Tuppeny
2016-09-04 11:24:33 UTC
When opening a Dart project in Dart Code, I'd like to prompt the user and
offer to run `pub get` if things are out of date (eg. you've cloned a new
repo).
Is there a reliable method for me to check whether or not `pub get` is
required? I was going to check for presence of `.packages` and compare
timestamps with `pubspec.yaml` but I don't think they'd be entirely
reliable (shouldn't be bad, but if there's a better way I can do this, I'd
rather just do that instead).
offer to run `pub get` if things are out of date (eg. you've cloned a new
repo).
Is there a reliable method for me to check whether or not `pub get` is
required? I was going to check for presence of `.packages` and compare
timestamps with `pubspec.yaml` but I don't think they'd be entirely
reliable (shouldn't be bad, but if there's a better way I can do this, I'd
rather just do that instead).
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.