mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 18:28:02 +00:00
Add trailing newline to package_config file
Avoids spurious diffs in git when generating with the tool compared to editing the file in an editor which may correct the missing newline. Change-Id: If73928fef0682c32d728bae666ccaea4c2749890 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185497 Auto-Submit: Nate Bosch <nbosch@google.com> Commit-Queue: Nate Bosch <nbosch@google.com> Commit-Queue: Leaf Petersen <leafp@google.com> Reviewed-by: Leaf Petersen <leafp@google.com>
This commit is contained in:
parent
4dabdbd028
commit
0485883d66
|
@ -128,7 +128,7 @@ void main(List<String> args) {
|
||||||
|
|
||||||
// TODO(rnystrom): Consider using package_config_v2 to generate this instead.
|
// TODO(rnystrom): Consider using package_config_v2 to generate this instead.
|
||||||
var json = JsonEncoder.withIndent(' ').convert(config);
|
var json = JsonEncoder.withIndent(' ').convert(config);
|
||||||
configFile.writeAsStringSync(json);
|
configFile.writeAsStringSync('$json\n');
|
||||||
print('Generated .dart_tool/package_config.dart containing '
|
print('Generated .dart_tool/package_config.dart containing '
|
||||||
'${packages.length} packages.');
|
'${packages.length} packages.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue