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

Unified Diff: utils/pub/sdk.dart

Issue 14247026: Disable SDK constraint checking on bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test. Created 7 years, 8 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 | « no previous file | utils/pub/solver/backtracking_solver.dart » ('j') | utils/tests/pub/version_solver_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/sdk.dart
diff --git a/utils/pub/sdk.dart b/utils/pub/sdk.dart
index 3222c9e9f8eeed863b7b69d2844e78ac60ace547..b9b50ecca2c7a1c2867fa340f81e734701292897 100644
--- a/utils/pub/sdk.dart
+++ b/utils/pub/sdk.dart
@@ -37,6 +37,12 @@ String get rootDirectory {
/// Gets the SDK's revision number formatted to be a semantic version.
Version version = _getVersion();
+/// Is `true` if the current SDK is an unreleased bleeding edge version.
+bool get isBleedingEdge {
+ // The live build is locked to the magical old number "0.1.2+<stuff>".
+ return version.major == 0 && version.minor == 1 && version.patch == 2;
+}
+
/// Determine the SDK's version number.
Version _getVersion() {
var revisionPath = path.join(rootDirectory, "version");
« no previous file with comments | « no previous file | utils/pub/solver/backtracking_solver.dart » ('j') | utils/tests/pub/version_solver_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698