Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions tools/pub_get_offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,6 @@ def find_unlisted_packages():
return unlisted


def delete_config_files():
# Find all package_config.json that are not under version control.
gitcmd = ['git', 'ls-files', '-o', '**/.dart_tool/package_config.json']
files_to_delete = subprocess.check_output(
gitcmd, cwd=ENGINE_DIR, stderr=subprocess.STDOUT, text=True
).splitlines()
for file in files_to_delete:
print('Deleting %s...' % file)
os.remove(os.path.join(ENGINE_DIR, file))


def main():
# Intentionally use the Dart SDK prebuilt instead of the Flutter prebuilt
# (i.e. prebuilts/{platform}/dart-sdk/bin/dart) because the script has to run
Expand All @@ -146,10 +135,6 @@ def main():
SRC_ROOT, 'flutter', 'third_party', 'dart', 'tools', 'sdks', 'dart-sdk', 'bin'
)

# Delete all package_config.json files. These may be stale.
# Required ones will be regenerated fresh below.
delete_config_files()

# Ensure all relevant packages are listed in ALL_PACKAGES.
unlisted = find_unlisted_packages()
if len(unlisted) > 0:
Expand Down
Loading