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
fd5a0894
Commit
fd5a0894
authored
Nov 15, 2016
by
Ian Hickson
Committed by
GitHub
Nov 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify pub.dart messages (#6856)
parent
6c93270d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
pub.dart
packages/flutter_tools/lib/src/dart/pub.dart
+12
-10
No files found.
packages/flutter_tools/lib/src/dart/pub.dart
View file @
fd5a0894
...
...
@@ -58,20 +58,22 @@ Future<Null> pubGet({
throwToolExit
(
'pub
$command
failed (
$code
)'
,
exitCode:
code
);
}
if
(
dotPackages
.
existsSync
()
&&
dotPackages
.
lastModifiedSync
().
isAfter
(
pubSpecYaml
.
lastModifiedSync
()
))
return
;
if
(
!
dotPackages
.
existsSync
(
))
throwToolExit
(
'
$directory
: pub did not create .packages file'
)
;
throwToolExit
(
'
$directory
: pubspec.yaml and .packages are in an inconsistent state'
);
if
(
dotPackages
.
lastModifiedSync
().
isBefore
(
pubSpecYaml
.
lastModifiedSync
()))
throwToolExit
(
'
$directory
: pub did not update .packages file (pubspec.yaml file has a newer timestamp)'
);
}
String
_filterOverrideWarnings
(
String
str
)
{
// Warning: You are using these overridden dependencies:
// ! analyzer 0.29.0-alpha.0 from path ../../bin/cache/dart-sdk/lib/analyzer
final
RegExp
_analyzerWarning
=
new
RegExp
(
r'^! analyzer [^ ]+ from path \.\./\.\./bin/cache/dart-sdk/lib/analyzer$'
);
if
(
str
.
contains
(
'overridden dependencies:'
))
String
_filterOverrideWarnings
(
String
message
)
{
// This function filters out these two messages:
// Warning: You are using these overridden dependencies:
// ! analyzer 0.29.0-alpha.0 from path ../../bin/cache/dart-sdk/lib/analyzer
if
(
message
==
'Warning: You are using these overridden dependencies:'
)
return
null
;
if
(
str
.
startsWith
(
'! analyzer '
))
if
(
message
.
contains
(
_analyzerWarning
))
return
null
;
return
str
;
return
message
;
}
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