mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
pub global deactivate devtools before installing (#82491)
* pub global deactivate devtools before installing * upgrade devtools to latest
This commit is contained in:
parent
14546bfad1
commit
855ada1d95
@ -1436,6 +1436,12 @@ class DevToolsMemoryTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _launchDevTools() async {
|
Future<void> _launchDevTools() async {
|
||||||
|
// To mitigate https://github.com/flutter/flutter/issues/82142
|
||||||
|
await exec(pubBin, <String>[
|
||||||
|
'global',
|
||||||
|
'deactivate',
|
||||||
|
'devtools',
|
||||||
|
], canFail: true);
|
||||||
// The version of devtools is pinned. If we pub global activate devtools and an
|
// The version of devtools is pinned. If we pub global activate devtools and an
|
||||||
// upstream devtools release breaks our CI, it will manifest on an unrelated
|
// upstream devtools release breaks our CI, it will manifest on an unrelated
|
||||||
// commit, making it more difficult to determine the cause.
|
// commit, making it more difficult to determine the cause.
|
||||||
@ -1445,7 +1451,7 @@ class DevToolsMemoryTest {
|
|||||||
'global',
|
'global',
|
||||||
'activate',
|
'activate',
|
||||||
'devtools',
|
'devtools',
|
||||||
'2.2.2',
|
'2.2.3',
|
||||||
]);
|
]);
|
||||||
_devToolsProcess = await startProcess(
|
_devToolsProcess = await startProcess(
|
||||||
pubBin,
|
pubBin,
|
||||||
|
Loading…
Reference in New Issue
Block a user