[infra] Use empty package config for package config generator

Previously, stray package_config.json files could cause the package config generator to fail.

Change-Id: If8dc81169a4f95f871572bde5c883a675ab3276b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401440
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
Commit-Queue: Alexander Thomas <athom@google.com>
Auto-Submit: Alexander Thomas <athom@google.com>
Reviewed-by: Sigurd Meldgaard <sigurdm@google.com>
This commit is contained in:
Alexander Thomas
2024-12-17 02:41:55 -08:00
committed by Commit Queue
parent cfbb695dc5
commit e8dafedc2d
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
{
"copyright": [
"Copyright (c) 2024, the Dart project authors. Please see the AUTHORS ",
"file for details. All rights reserved. Use of this source code is ",
"governed by a BSD-style license that can be found in the LICENSE file."
],
"comment": [
"Empty package configuration, used to bootstrap generate_package_config.dart"
],
"configVersion": 2,
"packages": []
}
+1
View File
@@ -35,6 +35,7 @@ def generate_package_config():
tools_dir = os.path.dirname(os.path.realpath(__file__)) tools_dir = os.path.dirname(os.path.realpath(__file__))
process = subprocess.run([ process = subprocess.run([
checked_in_sdk_executable(), checked_in_sdk_executable(),
'--packages=%s' % os.path.join(tools_dir, 'empty_package_config.json'),
os.path.join(tools_dir, 'generate_package_config.dart') os.path.join(tools_dir, 'generate_package_config.dart')
]) ])
return process.returncode return process.returncode