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
2dbf0106
Unverified
Commit
2dbf0106
authored
Aug 30, 2019
by
Jonah Williams
Committed by
GitHub
Aug 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create dart tool directory if it is missing (#39543)
parent
eefe9d95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
web_fs.dart
packages/flutter_tools/lib/src/build_runner/web_fs.dart
+4
-0
web_fs_test.dart
...ges/flutter_tools/test/general.shard/web/web_fs_test.dart
+5
-1
No files found.
packages/flutter_tools/lib/src/build_runner/web_fs.dart
View file @
2dbf0106
...
...
@@ -140,6 +140,10 @@ class WebFs {
@required
FlutterProject
flutterProject
,
@required
BuildInfo
buildInfo
})
async
{
// workaround for https://github.com/flutter/flutter/issues/38290
if
(!
flutterProject
.
dartTool
.
existsSync
())
{
flutterProject
.
dartTool
.
createSync
(
recursive:
true
);
}
// Start the build daemon and run an initial build.
final
BuildDaemonClient
client
=
await
buildDaemonCreator
.
startBuildDaemon
(
fs
.
currentDirectory
.
path
,
release:
buildInfo
.
isRelease
,
profile:
buildInfo
.
isProfile
);
...
...
packages/flutter_tools/test/general.shard/web/web_fs_test.dart
View file @
2dbf0106
...
...
@@ -72,10 +72,11 @@ void main() {
});
test
(
'Can create webFs from mocked interfaces'
,
()
=>
testbed
.
run
(()
async
{
final
FlutterProject
flutterProject
=
FlutterProject
.
current
();
await
WebFs
.
start
(
target:
fs
.
path
.
join
(
'lib'
,
'main.dart'
),
buildInfo:
BuildInfo
.
debug
,
flutterProject:
FlutterProject
.
current
()
,
flutterProject:
flutterProject
,
);
// The build daemon is told to build once.
...
...
@@ -83,6 +84,9 @@ void main() {
// Chrome is launched based on port from above.
verify
(
mockChromeLauncher
.
launch
(
'http://localhost:1234/'
)).
called
(
1
);
// .dart_tool directory is created.
expect
(
flutterProject
.
dartTool
.
existsSync
(),
true
);
}));
}
...
...
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