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
4c21bf10
Unverified
Commit
4c21bf10
authored
Jan 26, 2018
by
Yegor
Committed by
GitHub
Jan 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
warn about hard-coded version constraints in the upgrade script (#14291)
parent
c11f1749
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
update_packages.dart
packages/flutter_tools/lib/src/commands/update_packages.dart
+11
-0
No files found.
packages/flutter_tools/lib/src/commands/update_packages.dart
View file @
4c21bf10
...
...
@@ -867,6 +867,17 @@ File _pubspecFor(Directory directory) {
/// Generates the source of a fake pubspec.yaml file given a list of
/// dependencies.
String
_generateFakePubspec
(
Iterable
<
PubspecDependency
>
dependencies
)
{
if
(
_kManuallyPinnedDependencies
.
isNotEmpty
)
{
final
String
hardCodedConstraints
=
_kManuallyPinnedDependencies
.
keys
.
map
((
String
packageName
)
{
return
' -
$packageName
:
${_kManuallyPinnedDependencies[packageName]}
'
;
})
.
join
(
'
\n
'
);
printStatus
(
'WARNING: the following packages use hard-coded version constraints:
\n
'
'
$hardCodedConstraints
'
,
);
}
final
StringBuffer
result
=
new
StringBuffer
();
final
StringBuffer
overrides
=
new
StringBuffer
();
result
.
writeln
(
'name: flutter_update_packages'
);
...
...
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