Commit graph

7 commits

Author SHA1 Message Date
Ben Konyi 357dcc96a3
Suppress 'Info: Compiling without sound null safety' message when building flutter_tools (#74740)
The CFE now logs to stdout by default when compiling a program which has
non-null-safe dependencies. Since flutter_tools has not yet migrated, we
need to suppress this message when compiling the tool.

Fixes https://github.com/flutter/flutter/issues/74366
2021-01-26 15:05:18 -08:00
Marcus Tomlinson 5f76bfb4af
Add the ability to inject a bootstrap script (#66897) 2020-09-29 19:24:21 +01:00
Jonah Williams f1472e1fc4
[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.
2020-09-22 17:44:08 -07:00
Jonah Williams 1021a52f13
[flutter_tools] exit script if powershell version detection fails (#64773) 2020-08-31 11:23:06 -07:00
Jonah Williams 1b8e6b4236
[flutter_tools] fix exit label for batchfile (#62272)
move the final_exit label to the correct script location for the flutter/dart entrypoints.
2020-07-28 10:19:43 -07:00
Jonah Williams 8f59fdd20b
[flutter_tools] move mingit path addition back to flutter.bat (#59369)
fixes #57802

For users without git installed, flutter on windows bundles mingit. This needs to be added to the PATH in the main script, not the executed script, so that it is available to the tool
2020-06-15 09:43:10 -07:00
Christopher Fujino 06cd79d7df
[flutter_tools] Add additional bash entrypoint for running dart sdk directly (#57257) 2020-05-18 12:38:09 -07:00