Use SDK sources to refer to our own packages (#6001)

Switch our pubspec.yamls to using SDK sources so that we can have consistent
source types when we depend on these packages from external packages using SDK
sources.
This commit is contained in:
Adam Barth
2016-09-22 20:39:35 -07:00
committed by GitHub
parent 07416d5372
commit c1a2967430
18 changed files with 51 additions and 54 deletions

View File

@@ -30,7 +30,7 @@ dependencies:
''');
for (String package in findPackageNames()) {
buf.writeln(' $package:');
buf.writeln(' path: ../../packages/$package');
buf.writeln(' sdk: flutter');
}
new File('dev/docs/pubspec.yaml').writeAsStringSync(buf.toString());
@@ -45,7 +45,12 @@ dependencies:
new File('dev/docs/lib/temp_doc.dart').writeAsStringSync(contents.toString());
// Run pub.
Process process = await Process.start('pub', <String>['get'], workingDirectory: 'dev/docs');
Process process = await Process.start('pub', <String>['get'],
workingDirectory: 'dev/docs',
environment: <String, String>{
'FLUTTER_ROOT': Directory.current.path
}
);
printStream(process.stdout);
printStream(process.stderr);
int code = await process.exitCode;