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

Unified Diff: test/must_pub_get_test.dart

Issue 1956613002: Fix SDK constraints in lockfiles. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 7 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/solver/version_solver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/must_pub_get_test.dart
diff --git a/test/must_pub_get_test.dart b/test/must_pub_get_test.dart
index 7a2136115fb93ac06c89150421e8a54d7df8cfe2..3ef503537d4ab2b1b6e6684a82626e10cfe41d6c 100644
--- a/test/must_pub_get_test.dart
+++ b/test/must_pub_get_test.dart
@@ -352,6 +352,29 @@ foo:http://example.com/
_runsSuccessfully();
});
+
+ group("an overridden dependency's SDK constraint is unmatched", () {
+ setUp(() {
+ globalPackageServer.add((builder) {
+ builder.serve("bar", "1.0.0", pubspec: {
+ "environment": {"sdk": "0.0.0-fake"}
+ });
+ });
+
+ d.dir(appPath, [
+ d.pubspec({
+ "name": "myapp",
+ "dependency_overrides": {"bar": "1.0.0"}
+ })
+ ]).create();
+
+ pubGet();
+
+ _touch("pubspec.lock");
+ });
+
+ _runsSuccessfully();
+ });
});
}
« no previous file with comments | « lib/src/solver/version_solver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698