Index: utils/pub/command_install.dart |
diff --git a/utils/pub/command_install.dart b/utils/pub/command_install.dart |
index 001ba21cecf341a4c537766c7a0d14bc97b657c6..42970314eff76414ad8680711c7bf97392f48bea 100644 |
--- a/utils/pub/command_install.dart |
+++ b/utils/pub/command_install.dart |
@@ -10,14 +10,14 @@ import 'entrypoint.dart'; |
import 'log.dart' as log; |
import 'pub.dart'; |
-/// Handles the `install` pub command. |
+/// Handles the `install` pub command. |
class InstallCommand extends PubCommand { |
String get description => "Install the current package's dependencies."; |
String get usage => "pub install"; |
Future onRun() { |
- return entrypoint.installDependencies().then((_) { |
- log.message("Dependencies installed!"); |
- }); |
+ return entrypoint.installDependencies() |
+ .then((_) => log.message("Dependencies installed!")) |
+ .then((_) => entrypoint.validateSdkConstraints()); |
} |
} |