Skip to content

Commit

Permalink
switch const finder to package_config (flutter#19576)
Browse files Browse the repository at this point in the history
Generate package config during gclient runhooks and update BUILD.gn to reference it
  • Loading branch information
jonahwilliams authored Jul 7, 2020
1 parent 07d5090 commit 35b5aa5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
35 changes: 16 additions & 19 deletions tools/const_finder/.dart_tool/package_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,34 @@
"configVersion": 2,
"packages": [
{
"name": "args",
"rootUri": "../../../../third_party/dart/third_party/pkg/args",
"packageUri": "lib/",
"languageVersion": "2.0"
"name": "const_finder",
"rootUri": "../",
"packageUri": "lib",
"languageVersion": "2.4"
},
{
"name": "kernel",
"rootUri": "../../../../third_party/dart/pkg/kernel",
"packageUri": "lib/",
"packageUri": "lib",
"languageVersion": "2.2"
},
{
"name": "meta",
"rootUri": "../../../../third_party/dart/pkg/meta",
"packageUri": "lib/",
"languageVersion": "1.12"
"packageUri": "lib",
"languageVersion": "2.9"
},
{
"name": "args",
"rootUri": "../../../../third_party/dart/third_party/pkg/args",
"packageUri": "lib",
"languageVersion": "2.3"
},
{
"name": "path",
"rootUri": "../../../../third_party/dart/third_party/pkg/path",
"packageUri": "lib/",
"packageUri": "lib",
"languageVersion": "2.0"
},
{
"name": "const_finder",
"rootUri": "../",
"packageUri": "lib/",
"languageVersion": "2.4"
}
],
"generated": "2020-01-16T19:11:54.963296Z",
"generator": "pub",
"generatorVersion": "2.7.0"
}
]
}
2 changes: 1 addition & 1 deletion tools/const_finder/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import("//third_party/dart/utils/application_snapshot.gni")

application_snapshot("const_finder") {
main_dart = "bin/main.dart"
dot_packages = ".packages"
dot_packages = ".dart_tool/package_config.json"

training_args = [ "--help" ]

Expand Down
1 change: 1 addition & 0 deletions tools/run_third_party_dart.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
if __name__ == '__main__':
subprocess.call(["src/third_party/dart/tools/sdks/dart-sdk/bin/dart", "pub", "global", "activate", "-spath", "./src/flutter/tools/generate_package_config"])
subprocess.call(["src/third_party/dart/tools/sdks/dart-sdk/bin/dart", "pub", "global", "run", "generate_package_config:generate_from_legacy", "src/flutter/flutter_frontend_server/.packages"])
subprocess.call(["src/third_party/dart/tools/sdks/dart-sdk/bin/dart", "pub", "global", "run", "generate_package_config:generate_from_legacy", "src/flutter/tools/const_finder/.packages"])

0 comments on commit 35b5aa5

Please sign in to comment.