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
0f9d8bc2
Commit
0f9d8bc2
authored
Dec 14, 2015
by
Ian Hickson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #916 from Hixie/analyze
Always import our packages when analyzing.
parents
81ab91a6
0a6b0f9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
analyze.dart
packages/flutter_tools/lib/src/commands/analyze.dart
+13
-0
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+1
-0
No files found.
packages/flutter_tools/lib/src/commands/analyze.dart
View file @
0f9d8bc2
...
...
@@ -6,6 +6,7 @@ import 'dart:async';
import
'dart:convert'
;
import
'dart:io'
;
import
'package:den_api/den_api.dart'
;
import
'package:path/path.dart'
as
path
;
import
'../artifacts.dart'
;
...
...
@@ -179,6 +180,18 @@ class AnalyzeCommand extends FlutterCommand {
Map
<
String
,
String
>
packages
=
<
String
,
String
>{};
bool
hadInconsistentRequirements
=
false
;
for
(
Directory
directory
in
pubSpecDirectories
.
map
((
path
)
=>
new
Directory
(
path
)))
{
String
pubSpecYamlPath
=
path
.
join
(
directory
.
path
,
'pubspec.yaml'
);
File
pubSpecYamlFile
=
new
File
(
pubSpecYamlPath
);
if
(
pubSpecYamlFile
.
existsSync
())
{
Pubspec
pubSpecYaml
=
await
Pubspec
.
load
(
pubSpecYamlPath
);
String
packageName
=
pubSpecYaml
.
name
;
String
packagePath
=
path
.
normalize
(
path
.
absolute
(
path
.
join
(
directory
.
path
,
'lib'
)));
if
(
packages
.
containsKey
(
packageName
)
&&
packages
[
packageName
]
!=
packagePath
)
{
logging
.
warning
(
'Inconsistent requirements for
$packageName
; using
$packagePath
(and not
${packages[packageName]}
).'
);
hadInconsistentRequirements
=
true
;
}
packages
[
packageName
]
=
packagePath
;
}
File
dotPackages
=
new
File
(
path
.
join
(
directory
.
path
,
'.packages'
));
if
(
dotPackages
.
existsSync
())
{
Map
<
String
,
String
>
dependencies
=
<
String
,
String
>{};
...
...
packages/flutter_tools/pubspec.yaml
View file @
0f9d8bc2
...
...
@@ -12,6 +12,7 @@ dependencies:
archive
:
^1.0.20
args
:
^0.13.0
crypto
:
^0.9.1
den_api
:
^0.1.0
mustache4dart
:
^1.0.0
path
:
^1.3.0
stack_trace
:
^1.4.0
...
...
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