Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
7b0cc505
Unverified
Commit
7b0cc505
authored
Jul 18, 2019
by
Jonah Williams
Committed by
GitHub
Jul 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release lock in flutter pub context (#36218)
parent
757b5365
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
packages.dart
packages/flutter_tools/lib/src/commands/packages.dart
+4
-0
No files found.
packages/flutter_tools/lib/src/commands/packages.dart
View file @
7b0cc505
...
@@ -6,6 +6,7 @@ import 'dart:async';
...
@@ -6,6 +6,7 @@ import 'dart:async';
import
'../base/common.dart'
;
import
'../base/common.dart'
;
import
'../base/os.dart'
;
import
'../base/os.dart'
;
import
'../cache.dart'
;
import
'../dart/pub.dart'
;
import
'../dart/pub.dart'
;
import
'../project.dart'
;
import
'../project.dart'
;
import
'../reporting/usage.dart'
;
import
'../reporting/usage.dart'
;
...
@@ -163,6 +164,7 @@ class PackagesTestCommand extends FlutterCommand {
...
@@ -163,6 +164,7 @@ class PackagesTestCommand extends FlutterCommand {
@override
@override
Future
<
FlutterCommandResult
>
runCommand
()
async
{
Future
<
FlutterCommandResult
>
runCommand
()
async
{
Cache
.
releaseLockEarly
();
await
pub
(<
String
>[
'run'
,
'test'
,
...
argResults
.
rest
],
context:
PubContext
.
runTest
,
retry:
false
);
await
pub
(<
String
>[
'run'
,
'test'
,
...
argResults
.
rest
],
context:
PubContext
.
runTest
,
retry:
false
);
return
null
;
return
null
;
}
}
...
@@ -193,6 +195,7 @@ class PackagesForwardCommand extends FlutterCommand {
...
@@ -193,6 +195,7 @@ class PackagesForwardCommand extends FlutterCommand {
@override
@override
Future
<
FlutterCommandResult
>
runCommand
()
async
{
Future
<
FlutterCommandResult
>
runCommand
()
async
{
Cache
.
releaseLockEarly
();
await
pub
(<
String
>[
_commandName
,
...
argResults
.
rest
],
context:
PubContext
.
pubForward
,
retry:
false
);
await
pub
(<
String
>[
_commandName
,
...
argResults
.
rest
],
context:
PubContext
.
pubForward
,
retry:
false
);
return
null
;
return
null
;
}
}
...
@@ -220,6 +223,7 @@ class PackagesPassthroughCommand extends FlutterCommand {
...
@@ -220,6 +223,7 @@ class PackagesPassthroughCommand extends FlutterCommand {
@override
@override
Future
<
FlutterCommandResult
>
runCommand
()
async
{
Future
<
FlutterCommandResult
>
runCommand
()
async
{
Cache
.
releaseLockEarly
();
await
pubInteractively
(
argResults
.
rest
);
await
pubInteractively
(
argResults
.
rest
);
return
null
;
return
null
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment