Skip to content

Commit

Permalink
[tool] Fix BuildInfo.packagesPath doc comment (#103785)
Browse files Browse the repository at this point in the history
Until recently, BuildInfo.packagesPath defaulted to `.packages` however,
the .packages file has been deprecated [1] and is being removed. In
flutter/flutter#99677 the default was changed to
`.dart_tool/package_config.json` but the doc comment was accidentally
updated to `.dart_tool/packages`. This corrects it to the true default
value.

1: dart-lang/sdk#48272

Spotted in the midst of some related cleanup relating to
flutter/flutter#103775
  • Loading branch information
cbracken authored May 14, 2022
1 parent e915479 commit f2116cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/flutter_tools/lib/src/build_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class BuildInfo {
/// The path to the package configuration file to use for compilation.
///
/// This is used by package:package_config to locate the actual package_config.json
/// file. If not provided, defaults to `.dart_tool/packages`.
/// file. If not provided, defaults to `.dart_tool/package_config.json`.
final String packagesPath;

final List<String> fileSystemRoots;
Expand Down

0 comments on commit f2116cb

Please sign in to comment.