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

Unified Diff: dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart

Issue 106993002: Revert "Change SDK/DartEditor versioning scheme to semantic versions." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | « dart/sdk/lib/_internal/pub/lib/src/sdk.dart ('k') | dart/sdk/lib/_internal/pub/test/sdk_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart
diff --git a/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart b/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart
index cefa4da4012964593cf1361e506f1859caace32c..c38295c348871f726025f2b38cd63fb1115e7704 100644
--- a/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart
+++ b/dart/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart
@@ -630,6 +630,12 @@ class Traverser {
/// Ensures that if [pubspec] has an SDK constraint, then it is compatible
/// with the current SDK. Throws a [SolveFailure] if not.
void _validateSdkConstraint(Pubspec pubspec) {
+ // If the user is running a continouous build of the SDK, just disable SDK
+ // constraint checking entirely. The actual version number you get is
+ // impossibly old and not correct. We'll just assume users on continuous
+ // know what they're doing.
+ if (sdk.isBleedingEdge) return;
+
if (pubspec.environment.sdkVersion.allows(sdk.version)) return;
throw new BadSdkVersionException(pubspec.name,
« no previous file with comments | « dart/sdk/lib/_internal/pub/lib/src/sdk.dart ('k') | dart/sdk/lib/_internal/pub/test/sdk_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698