Bump deps on package:file and package:process (#8097)
This commit is contained in:
@@ -338,7 +338,7 @@ Map<_Asset, List<_Asset>> _parseAssets(
|
||||
return result;
|
||||
|
||||
excludeDirs = excludeDirs.map(
|
||||
(String exclude) => path.absolute(exclude) + fs.pathSeparator).toList();
|
||||
(String exclude) => path.absolute(exclude) + fs.path.separator).toList();
|
||||
|
||||
if (manifestDescriptor.containsKey('assets')) {
|
||||
for (String asset in manifestDescriptor['assets']) {
|
||||
|
||||
@@ -199,7 +199,7 @@ void _traceCommand(List<String> args, { String workingDirectory }) {
|
||||
if (workingDirectory == null)
|
||||
printTrace(argsText);
|
||||
else
|
||||
printTrace("[$workingDirectory${fs.pathSeparator}] $argsText");
|
||||
printTrace("[$workingDirectory${fs.path.separator}] $argsText");
|
||||
}
|
||||
|
||||
String _runWithLoggingSync(List<String> cmd, {
|
||||
|
||||
@@ -87,7 +87,7 @@ String getElapsedAsMilliseconds(Duration duration) => '${duration.inMilliseconds
|
||||
/// Return a relative path if [fullPath] is contained by the cwd, else return an
|
||||
/// absolute path.
|
||||
String getDisplayPath(String fullPath) {
|
||||
String cwd = fs.currentDirectory.path + fs.pathSeparator;
|
||||
String cwd = fs.currentDirectory.path + fs.path.separator;
|
||||
return fullPath.startsWith(cwd) ? fullPath.substring(cwd.length) : fullPath;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ bool inRepo(List<String> fileList) {
|
||||
if (fileList == null || fileList.isEmpty)
|
||||
fileList = <String>[path.current];
|
||||
String root = path.normalize(path.absolute(Cache.flutterRoot));
|
||||
String prefix = root + fs.pathSeparator;
|
||||
String prefix = root + fs.path.separator;
|
||||
for (String file in fileList) {
|
||||
file = path.normalize(path.absolute(file));
|
||||
if (file == root || file.startsWith(prefix))
|
||||
|
||||
@@ -87,7 +87,7 @@ class BuildCleanCommand extends FlutterCommand {
|
||||
@override
|
||||
Future<Null> runCommand() async {
|
||||
Directory buildDir = fs.directory(getBuildDirectory());
|
||||
printStatus("Deleting '${buildDir.path}${fs.pathSeparator}'.");
|
||||
printStatus("Deleting '${buildDir.path}${fs.path.separator}'.");
|
||||
|
||||
if (!buildDir.existsSync())
|
||||
return;
|
||||
|
||||
@@ -66,7 +66,7 @@ class BuildAotCommand extends BuildSubCommand {
|
||||
if (outputPath == null)
|
||||
throwToolExit(null);
|
||||
|
||||
printStatus('Built to $outputPath${fs.pathSeparator}.');
|
||||
printStatus('Built to $outputPath${fs.path.separator}.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user