Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1071)

Unified Diff: lib/src/validator/sdk_constraint.dart

Issue 2165423002: Add support for Flutter SDK constraints. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/validator/dependency.dart ('k') | test/lock_file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/validator/sdk_constraint.dart
diff --git a/lib/src/validator/sdk_constraint.dart b/lib/src/validator/sdk_constraint.dart
index 827a8e76ecc3e656778173ba04876f7b1ccffd60..bdf7e7be8bf98309738a9e77e1561546cde6c208 100644
--- a/lib/src/validator/sdk_constraint.dart
+++ b/lib/src/validator/sdk_constraint.dart
@@ -14,7 +14,7 @@ class SdkConstraintValidator extends Validator {
: super(entrypoint);
Future validate() async {
- var constraint = entrypoint.root.pubspec.environment.sdkVersion;
+ var constraint = entrypoint.root.pubspec.dartSdkConstraint;
if (!constraint.toString().startsWith("^")) return;
errors.add(
« no previous file with comments | « lib/src/validator/dependency.dart ('k') | test/lock_file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698