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

Side by Side Diff: sdk/lib/_internal/pub/test/implicit_barback_dependency_test.dart

Issue 114193010: Show the dependender(s) for missing packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'descriptor.dart' as d; 5 import 'descriptor.dart' as d;
6 import 'test_pub.dart'; 6 import 'test_pub.dart';
7 import '../lib/src/barback.dart' as barback; 7 import '../lib/src/barback.dart' as barback;
8 import '../lib/src/version.dart'; 8 import '../lib/src/version.dart';
9 9
10 main() { 10 main() {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 integration("includes pub in the error if a solve failed because there " 108 integration("includes pub in the error if a solve failed because there "
109 "is no version available", () { 109 "is no version available", () {
110 servePackages([ 110 servePackages([
111 packageMap("barback", previous) 111 packageMap("barback", previous)
112 ]); 112 ]);
113 113
114 d.appDir({"barback": "any"}).create(); 114 d.appDir({"barback": "any"}).create();
115 115
116 pubGet(error: """ 116 pubGet(error: """
117 Package 'barback' has no versions that match >=$current <$max derived from: 117 Package barback has no versions that match >=$current <$max derived from:
118 - 'myapp' depends on version any 118 - myapp depends on version any
119 - pub itself depends on version >=$current <$max"""); 119 - pub itself depends on version >=$current <$max""");
120 }); 120 });
121 121
122 integration("includes pub in the error if a solve failed because there " 122 integration("includes pub in the error if a solve failed because there "
123 "is a disjoint constraint", () { 123 "is a disjoint constraint", () {
124 servePackages([ 124 servePackages([
125 packageMap("barback", current) 125 packageMap("barback", current)
126 ]); 126 ]);
127 127
128 d.appDir({"barback": previous}).create(); 128 d.appDir({"barback": previous}).create();
129 129
130 pubGet(error: """ 130 pubGet(error: """
131 Incompatible version constraints on 'barback': 131 Incompatible version constraints on barback:
132 - 'myapp' depends on version $previous 132 - myapp depends on version $previous
133 - pub itself depends on version >=$current <$max"""); 133 - pub itself depends on version >=$current <$max""");
134 }); 134 });
135 } 135 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/hosted/offline_test.dart ('k') | sdk/lib/_internal/pub/test/pub_get_and_upgrade_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698