• Jonah Williams's avatar
    [flutter_tools] only lock if an upgrade/download will be performed... · f1472e1f
    Jonah Williams authored
    [flutter_tools] only lock if an upgrade/download will be performed (linux/macos) and output building messages to stderr (#65422)
    
    Currently an invocation of flutter/dart will always attempt to acquire a lock. This can pose problems for tools that attempt to run multiple dart/flutter instances.
    
    Instead update the lock logic (on Linux/macOS) so that we only attempt to acquire it if an update/snapshot needs to be performed. To avoid repeatedly performing downloads/snapshots if multiple flutter/dart invocations are fired off concurrently when an update needs to be performed, do a second check of the download/snapshot condition after the lock is released.
    
    Additionally, moves all of the building/debug output to stderr on both the bash and batch scripts. This allows machine mode consumption of the tool to ignore needing to parse/handle the rebuild messages.
    f1472e1f
Name
Last commit
Last update
..
test Loading commit data...
README.md Loading commit data...
accept_android_sdk_licenses.sh Loading commit data...
analyze-sample-code.dart Loading commit data...
analyze.dart Loading commit data...
browser.dart Loading commit data...
codelabs_build_test.sh Loading commit data...
codesign.dart Loading commit data...
deploy_gallery.sh Loading commit data...
docs.sh Loading commit data...
download_goldctl.ps1 Loading commit data...
download_goldctl.sh Loading commit data...
firebase_testlab.sh Loading commit data...
flutter_compact_formatter.dart Loading commit data...
prepare_package.dart Loading commit data...
pubspec.yaml Loading commit data...
run_command.dart Loading commit data...
run_fuchsia_tests.sh Loading commit data...
service_worker_test.dart Loading commit data...
serviceaccount.enc Loading commit data...
test.dart Loading commit data...
unpublish_package.dart Loading commit data...
utils.dart Loading commit data...