OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import '../../../../pub/exit_codes.dart' as exit_codes; |
| 6 import '../../test_pub.dart'; |
| 7 |
| 8 main() { |
| 9 initConfig(); |
| 10 integration('path dependencies cannot use relative paths', () { |
| 11 dir(appPath, [ |
| 12 pubspec({ |
| 13 "name": "myapp", |
| 14 "dependencies": { |
| 15 "foo": {"path": "../foo"} |
| 16 } |
| 17 }) |
| 18 ]).scheduleCreate(); |
| 19 |
| 20 schedulePub(args: ['install'], |
| 21 error: new RegExp("Path dependency for package 'foo' must be an " |
| 22 "absolute path. Was '../foo'."), |
| 23 exitCode: exit_codes.DATA); |
| 24 }); |
| 25 } |
OLD | NEW |